There are two ways to start it:
1) ssh-agent command
2) eval `ssh-agent`
They both work fine for me, but I want to have it start automatically
when I login. The obvious solution is to put (2) in my .bash_profile
However, after a couple of logons, I'd have several agents running in bg.
Ok, since it doesn't automatically terminate, I can add
3) eval `ssh-agent -k`
in my .bash_logout and that'd be fine... except if I want to do a "exec"
from a login shell. I presume the logout script would not get run?
I suppose the prob would be non-existent if I could have just had
0) ssh-agent bash
as my login shell command. (note: to do "exec ssh-agent bash" in my
.bash_profile may/would have semi-obvious problems... ;)
Any ideas?
-- # Ken Lai <min-ken.lai@yale.edu> also at ken.lai@WriteMe.com # http://pantheon.yale.edu/~ml267/ ICQ# 5845632