Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64178 - Keychain 2.4.0 on Solaris 9 always prompts for key passphrase
Summary: Keychain 2.4.0 on Solaris 9 always prompts for key passphrase
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Keychain (show other bugs)
Hardware: Sparc All
: High major (vote)
Assignee: Keychain Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-15 14:19 UTC by nbardsley
Modified: 2004-09-22 18:28 UTC (History)
0 users

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


Attachments
debugging output keychain 2.4.0 & Solaris 9 sparc (keychain_notes.txt,6.68 KB, text/plain)
2004-09-15 17:07 UTC, nbardsley
Details
testing version of keychain-2.4.1 (keychain,32.21 KB, text/plain)
2004-09-15 19:48 UTC, Aron Griffis (RETIRED)
Details
debugging output keychain 2.4.1-test2 (keychain_notes2.txt,6.97 KB, text/plain)
2004-09-16 09:35 UTC, nbardsley
Details
testing version of keychain-2.4.1 (try 2) (keychain,32.50 KB, text/plain)
2004-09-19 17:39 UTC, Aron Griffis (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nbardsley 2004-09-15 14:19:02 UTC
Keychain 2.4.0 on Solaris 9 using supplied Sun SSH 1.01
Always asks for key passphrase.

ssh-add -l returns a slightly different format:
nbardsley@mojapp2 ~ $ ssh-add -l
md5 1024 4f:48:01:9e:fd:16:d4:e4:f5:14:18:fc:8e:95:f5:64 /data/users/nbardsley/.ssh/id_dsa(DSA)

(output with set -xv available if needed.)

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 nbardsley 2004-09-15 17:07:16 UTC
Created attachment 39670 [details]
debugging output keychain 2.4.0 & Solaris 9 sparc
Comment 2 nbardsley 2004-09-15 18:37:14 UTC
This bit of sed pulls out the fingerprint in Solaris, RH7.3, and cygwin

...| sed 's/.* \(\<[a-f0-9]\{2\}:[a-f0-9:]*\>\) .*/\1/' | xargs

Maybe it's more useful than testing what kind of ssh is being used?
Comment 3 Aron Griffis (RETIRED) gentoo-dev 2004-09-15 19:48:38 UTC
Created attachment 39680 [details]
testing version of keychain-2.4.1

Thanks for the sed suggestion.	It makes me a little nervous because I'm pretty
sure I've run across seds out there on which \{2\} wouldn't work.

Also, since .* is greedy, it could get fouled up with openssh which reports
relative instead of absolute paths.  If the path were to start with af: or
something silly like that, it would get the wrong thing.  Unlikely, I know, but
I'm going for bulletproofness.

Finally, we need to know it's $sunssh later in the code anyway, for example to
set the timeout correctly.

I think the reason it didn't work for you was because I didn't complete the
changes.  Here is another testing version for you.  If this version doesn't
work, then I'll need to see the output of one more command:

ssh-keygen -l -f $HOME/.ssh/id_dsa.pub

Thanks, I appreciate all the debugging info you've provided.
Comment 4 nbardsley 2004-09-16 09:35:49 UTC
Created attachment 39703 [details]
debugging output keychain 2.4.1-test2
Comment 5 nbardsley 2004-09-16 09:48:36 UTC
The keygen output is at the end of the previous attachment.

Re: sed, absolutely, I just didn't want to be the one to turn keychain into a whole bunch of case statements. :)
Comment 6 Aron Griffis (RETIRED) gentoo-dev 2004-09-19 17:39:12 UTC
Created attachment 39972 [details]
testing version of keychain-2.4.1 (try 2)

Nathan, sorry for the long delay, was off hiking this weekend.	Here is another
version for you to test.  Thanks for the debugging output.
Comment 7 nbardsley 2004-09-20 17:40:32 UTC
Thanks again for putting so much time into supporting a platform you don't use!  

This one seems to be working well on one server.  I'm seeing this error message "* Warning: /data/users/nbardsley/.ssh/id_dsa.pub missing; can't tell if /data/users/nbardsley/.ssh/id_dsa is loaded" for the first time.  The public key isn't on that box so it's legitimate.  I need to distribute the pubkey and try some stuff, but looks good so far!
Comment 8 Aron Griffis (RETIRED) gentoo-dev 2004-09-22 18:28:14 UTC
Fixed in keychain 2.4.1, now on the website.  Thanks for all your help, Nathan.