keychain doesn't properly cache ssh key

Jim Kleckner jek-cygwin1@kleckner.net
Fri Aug 11 13:14:00 GMT 2006


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/



More information about the Cygwin mailing list