I recently upgraded to the latest version of keychain on my server. Everything worked like a charm before but now keychain asks me all the time to enter my password even if there is a key-agent process running. As I said it worked very well before and I haven't changed my profile files at all. My system: FreeBSD donnex.net 4.10-RELEASE-p3 FreeBSD 4.10-RELEASE-p3 #7: Wed Oct 13 19:52:06 CEST 2004 donnex@donnex.net:/usr/obj/usr/src/sys/donnex i386 Keychain: KeyChain 2.4.2.1; http://www.gentoo.org/projects/keychain Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL Output: First I log into the box and it asks me to enter my password, I enter it corretcly. Then I execute a new shell. [donnex@donnex.net: ~] bash KeyChain 2.4.2.1; http://www.gentoo.org/projects/keychain Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL * Initializing /home/donnex/.keychain/donnex.net-sh file... * Initializing /home/donnex/.keychain/donnex.net-csh file... * Starting ssh-agent * Adding 1 ssh key(s)... Enter passphrase for /home/donnex/.ssh/id_rsa: Identity added: /home/donnex/.ssh/id_rsa (/home/donnex/.ssh/id_rsa) For some reson keychain asks me again for my password even if I entered it correctly the first time. I try to execute another shell. [donnex@donnex.net: ~] bash KeyChain 2.4.2.1; http://www.gentoo.org/projects/keychain Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL * Initializing /home/donnex/.keychain/donnex.net-sh file... * Initializing /home/donnex/.keychain/donnex.net-csh file... * Starting ssh-agent * Adding 1 ssh key(s)... Enter passphrase for /home/donnex/.ssh/id_rsa: Identity added: /home/donnex/.ssh/id_rsa (/home/donnex/.ssh/id_rsa) Now again it ask me for the password again when it should not. Then I check so that ssh-agent really is running, and it is, many times. [donnex@donnex.net: ~] ps aux | grep ssh donnex 72138 0.0 0.2 2208 1256 ?? Is 4:11AM 0:00.00 ssh-agent donnex 72090 0.0 0.2 2208 1256 ?? Is 4:11AM 0:00.00 ssh-agent donnex 72034 0.0 0.2 2208 1256 ?? Is 4:11AM 0:00.00 ssh-agent donnex 72005 0.0 0.2 5024 1788 ?? S 4:11AM 0:00.02 sshd: donnex@ttyp1 (sshd) donnex 71959 0.0 0.2 2208 1244 ?? Is 4:10AM 0:00.00 ssh-agent donnex 71911 0.0 0.2 2208 1256 ?? Is 4:10AM 0:00.00 ssh-agent donnex 71783 0.0 0.2 2208 1244 ?? Is 4:08AM 0:00.00 ssh-agent donnex 71341 0.0 0.2 2208 1256 ?? Is 3:58AM 0:00.00 ssh-agent donnex 71278 0.0 0.2 2208 1256 ?? Is 3:58AM 0:00.00 ssh-agent Then I ask keychain to exit all running ssh-agent processes, but it don't seem to find any. [donnex@donnex.net: ~] keychain -k KeyChain 2.4.2.1; http://www.gentoo.org/projects/keychain Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL * No ssh-agent(s) found running.
Hi, just did some more research and 2.4.1 works perfectly but something seems to have been broken in 2.4.2 and 2.4.2.1 because it doesn't work with those versions.
Created attachment 44065 [details] keychain-2.4.3-test1 Please give this version of keychain a try. Sorry for the delay.
The test version works for me on FreeBSD, thanks Aron!
I've tested keychain-2.4.3-test1 on FreeBSD 4.10, 5.3 and 6.0-CURRENT. Works OK on all. Aron, please release ASAP!
Ok, I made a few other changes, but I don't think I broke it ;-) keychain-2.4.3 released at http://dev.gentoo.org/~agriffis/keychain/ Thanks for your help, guys.