After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 516102 - gnome-keyring doesn't unlock ssh keys
gnome-keyring doesn't unlock ssh keys
Status: RESOLVED NOTABUG
Product: gnome-keyring
Classification: Core
Component: general
2.21.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME keyring maintainer(s)
GNOME keyring maintainer(s)
Depends on: 503278
Blocks:
 
 
Reported: 2008-02-12 20:49 UTC by Sebastien Bacher
Modified: 2009-02-20 15:29 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Sebastien Bacher 2008-02-12 20:49:12 UTC
The bug has been opened on https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/177938

"Binary package hint: gnome-keyring

I used to use seahorse as an ssh-agent, it allows me have my ssh keys automatically unlocked on login, my passphrase being stored in the keyring.

However since last upgrades in Hardy, it stopped working.
Seahorse can't be used anymore as an ssh-agent [1] as gnome-keyring is supposed to provide one.
This is true, SSH_AUTH_SOCK is now a socket file owned by gnome-keyring-daemon, but this doesn't seem to work as I have to enter my passphrase each time I login in another computer.

[1] From the Seahorse NEWS file:
seahorse 2.21.3
---------------
    * Remove SSH proxy since gnome-keyring now has a real SSH agent."
Comment 1 Sebastien Bacher 2008-02-13 09:38:29 UTC
hum, there is already an option for that, I'll ask details to the submitter
Comment 2 Stef Walter 2008-02-14 23:08:17 UTC
This is most likely due to the XAUTHORITY environment variable on the daemon not being set properly not working properly. Referencing the relevant bug.
Comment 3 Sebastien Bacher 2008-02-14 23:21:25 UTC
That works correctly for him now, I think you can close the bug if there is already an another one about the issue
Comment 4 Sebastien Bacher 2008-03-13 16:07:27 UTC
That is still happening when using autologin
Comment 5 Stef Walter 2008-03-16 14:51:07 UTC
Could you use 'ssh -v remotehost' and include the output of ssh? That'll tell us why its not using the agent. 
Comment 6 Michael Biebl 2008-03-17 04:45:27 UTC
Please see also
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=471270

If you need more information, please let me know.
Comment 7 Sebastien Bacher 2008-03-17 09:33:26 UTC
the autologin issue might be a different one, the ssh agent dialog is displayed, it has not box to store the password in the keyring though which means it works only for the current session
Comment 8 Stef Walter 2008-03-17 18:16:05 UTC
Sebastian, that'll happen if:

 a) The 'login' keyring is not unlocked.
 b) The 'login' keyring has a blank password (and thus writes to the 
    disk in clear text).

The solution in (a) is to make sure the PAM module is installed and working properly. The solution in case (b) is either to add a password to your 'login' keyring, or to remove the password from your ssh key.

But I may be wrong, as I don't know the ins and outs of your system. So please correct me if what I'm saying above doesn't make sense. 
Comment 9 Michael Biebl 2008-03-17 20:53:00 UTC
Apparently, the problem seems to be, that I have several ssh keys.
Eg. the one I use for the gnome svn is called ~/.ssh/id_rsa.gnome

As soon as I rename that to ~/.ssh/id_rsa and do an svn up, seahorse pops up and asks me for the password (giving me the option to store it into the gnome keyring).

So, the problem in seahorse/gnome-keyring 2.22 seems to be, that it can't handle ssh keys with names different than id_rsa 
Comment 10 Sebastien Bacher 2008-03-18 00:10:33 UTC
the keyring has not password so that doesn't seem to be a bug there
Comment 11 Stef Walter 2008-03-18 16:58:19 UTC
Michael, yes automatic loading of additional SSH keys is supported. Until we have a GUI (GNOME 2.24) for this, here's how to do it:

http://live.gnome.org/GnomeKeyring/Ssh
Comment 12 Michael Biebl 2008-03-18 20:07:04 UTC
(In reply to comment #11)
> Michael, yes automatic loading of additional SSH keys is supported. Until we
> have a GUI (GNOME 2.24) for this, here's how to do it:
> 
> http://live.gnome.org/GnomeKeyring/Ssh
> 

Thanks, Stef.
That indeed seems to do the trick.
There is still a regression though compared to gnome-keyring/seahorse 2.20:

In 2.20, seahorse noticed, whenever an (additional) ssh key was opened (as it seemed to manage both gpg and ssh keys).
In 2.22, seahorse doesn't list my opened ssh keys anymore (in the systray).
Comment 13 Stefan Sauer (gstreamer, gtkdoc dev) 2009-02-20 10:44:27 UTC
irregaular names ssh keys are still an issue in gnome 2.24.
Comment 14 Stef Walter 2009-02-20 13:41:19 UTC
I believe the irregular ssh key names problem is fixed in 2.25.x and later. 
Comment 15 Stefan Sauer (gstreamer, gtkdoc dev) 2009-02-20 15:13:22 UTC
Stef, thanks for fixing it. Will have to wait one more gnome cycle then.. Need to add a temporary hack to do a ssh-add in then session for now.
Comment 16 Stef Walter 2009-02-20 15:29:10 UTC
Sorry for not mentioning the work around:

You can rename or link your key to something that matches the glob id_?sa. For example rename or link it to: id_zsa