This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: keychain doesn't properly cache ssh key


René Berber wrote:
Keychain seems to be missing the equivalent of "eval `ssh-agent -s`" (if using
bash).

I use this bash function to start keychain to work around that issue.


function kc() {
   #Keychain invocation
   keychain ~/.ssh/id_rsa
   if [ -e ~/.ssh-agent-`hostname` ] ; then
       source ~/.ssh-agent-`hostname`
   elif [ -e ~/.keychain/`hostname`-sh ] ; then
       source ~/.keychain/`hostname`-sh
   fi
}


-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]