how to make ssh-agent automatically
Thu Dec 1 02:27:00 GMT 2005
Karl M wrote:
> Hi HS...
> You can use keychain (a package available from setup.exe).
> I do something like
> ssh-add -l >/dev/null 2>&1
> if [ $? -eq 1 ]; then
> in my .bash_profile, because keychain is slow when I launch several
Okay, I will try that. BTW, just out of curosity, is using keychain only
one of the methods to achieve this or is it the only method? I mean, is
it possible to do this without keychain or any other packages and just
with ssh and rsync and login/logout files and environment variables?
> Why do you kill the agent when you log out? (Windows will kill it when
> you log off from windows.)
Currently I was starting ssh-agent in cygwin command prompt window. And
if I did not kill ssh-agent the window would not close upon exit. By
killing if from .bash_logout solved that problem.
> If you want to keep the agent around from one login to the next, you can
> launch the agent as a service. I used to do that with keychain, but for
> performance reasons, I use ssh-agent and ssh-add directly. I plan on
> proposing a package for doing this.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin