[olug] keychain work for anyone?

David Walker linux_user at grax.com
Wed Feb 19 13:26:50 UTC 2003


It works great for me.  I find it to be rather awesome.
I put a file containing the following in /etc/profile.d/keychain.sh
so it starts whenever I log in or open a new shell.

if [ "$PS1" ]; then
        keychain ~/.ssh/id_dsa
        . ~/.keychain/${HOSTNAME}-sh
fi

Looks like you needed the second command to make it all work.


On Tuesday 18 February 2003 10:26 pm, Brian Wiese wrote:
> So I'm running keychain, but it's not working - doesn't do anything for
> me.  Does it work for anyone else?  To my understanding, when keychain is
> run - it asks for your passphrase to your private ssh keys, and will keep
> you authenticated as it negotiate future ssh sessions for you that ask for
> you to authenticate via said public keys.
>
> It does not do this for me, every ssh connection I attempt after running
> keychain still asks for my passphrase every time.  See for yourself...
> I'm running the debian package of keychain and host 'liberty' has my
> public key in it's 'authorized_keys' file ... thats why my passphrase
> login works...
>
> --------------------------------------------------
> bwiese at franklin:~$ keychain /home/bwiese/.ssh/id_rsa
>
> KeyChain 1.9; http://www.gentoo.org/projects/keychain
>  Copyright 2001 Gentoo Technologies, Inc.; Distributed under the GPL
>  * All previously running ssh-agent(s) have been stopped.
>  * Initializing /home/bwiese/.ssh-agent-franklin file...
>  * Initializing /home/bwiese/.ssh-agent-csh-franklin file...
>  * Starting new ssh-agent
>  * 1 more keys to add...
> Enter passphrase for /home/bwiese/.ssh/id_rsa:
> Identity added: /home/bwiese/.ssh/id_rsa (/home/bwiese/.ssh/id_rsa)
>
> bwiese at franklin:~$ ssh liberty
> Enter passphrase for key '/home/bwiese/.ssh/id_rsa':  <entered passphrase>
> Last login: Tue Feb 18 22:16:09 2003 from 192.168.200.232
> Have a lot of fun...
> bwiese at liberty:~> exit
> logout
> Connection to liberty closed.
> bwiese at franklin:~$ ssh liberty
> Enter passphrase for key '/home/bwiese/.ssh/id_rsa':  <had to again>
> --------------------------------------------------
>
> ssh-agent seems to work fine though...
>
> --------------------------------------------------
> bwiese at franklin:~$ eval `ssh-agent`
> Agent pid 24022
> bwiese at franklin:~$ ssh-add
> Enter passphrase for /home/bwiese/.ssh/id_rsa:
> Identity added: /home/bwiese/.ssh/id_rsa (/home/bwiese/.ssh/id_rsa)
> bwiese at franklin:~$ ssh liberty
> Last login: Tue Feb 18 22:28:49 2003 from 192.168.200.232
> Have a lot of fun...
> bwiese at liberty:~>
> --------------------------------------------------
>
>
> links...
> http://www-106.ibm.com/developerworks/library/l-keyc2/
>
>
>   Brian Wiese | bwiese at cotse.com | aim: unolinuxguru
> ------------------------------------------------------
>   GnuPG/PGP key 0x1E820A73 | "FREEDOM!" - Braveheart
> ------------------------------------------------------
> This is not about Napster or DVDs. It's about your Freedom.
>   I'll see your DMCA and raise you a First Amendment.
>               http://www.anti-dmca.org
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug




More information about the OLUG mailing list