Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69879 - Keychain 2.4.2+ broken on BSD
Summary: Keychain 2.4.2+ broken on BSD
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Keychain (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Keychain Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-02 13:30 UTC by Daniel Johansson
Modified: 2004-11-17 19:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
keychain-2.4.3-test1 (keychain,38.72 KB, text/plain)
2004-11-16 07:48 UTC, Aron Griffis (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Johansson 2004-11-02 13:30:32 UTC
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.
Comment 1 Daniel Johansson 2004-11-05 09:15:15 UTC
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.
Comment 2 Aron Griffis (RETIRED) gentoo-dev 2004-11-16 07:48:17 UTC
Created attachment 44065 [details]
keychain-2.4.3-test1

Please give this version of keychain a try.  Sorry for the delay.
Comment 3 Jonathan Wakely 2004-11-16 12:22:22 UTC
The test version works for me on FreeBSD, thanks Aron!
Comment 4 Lupe Christoph 2004-11-16 23:22:46 UTC
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!
Comment 5 Aron Griffis (RETIRED) gentoo-dev 2004-11-17 19:12:05 UTC
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.