gnome keyring no longer acts as ssh agent on login
Bug #377467 reported by
Mikel Ward
This bug affects 10 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-keyring (Ubuntu) |
Confirmed
|
Low
|
Ubuntu Desktop Bugs | ||
Bug Description
I was using Ubuntu 8.10 with pam_gnome_keyring configured to start in /etc/pam.d/gdm.
This used to start GNOME Keyring at login and work as my SSH agent, meaning I could run ssh <remote server> and I didn't need to re-enter my passphrase.
After upgrading to Ubuntu 9.04, this is broken.
Now, ssh-agent gets started via my ~/.bash_profile, which only happens if SSH_AUTH_SOCK is unset, and then I am asked to enter my SSH key's passphrase due to ssh-add also being conditionally started in ~/.bash_profile if ssh-add -l shows not keys already added to the ssh agent.
tags: | added: regression-proposed |
To post a comment you must log in.
Actually, it's something stranger. I think it might be starting but not unlocking my SSH key automatically.
Need to investigate further.
$ echo $SSH_AUTH_SOCK 6gJinp/ socket. ssh gnome-keyring- daemon --daemonize --login fuse-daemon file system /home/mward/.gvfs 6gJinp/ socket mward/linc- f5a-0-3921dd1d5 f951 mward/linc- f5a-0-3921dd1d5 f951 6gJinp/ socket. ssh 6gJinp/ socket. pkcs11
ssh-add
/tmp/keyring-
$ echo $SSH_AGENT_PID
3971
$ ps -ef | grep keyring
mward 3930 1 0 11:21 ? 00:00:00 /usr/bin/
$ sudo lsof -p 3930 | grep '/tmp'
lsof: WARNING: can't stat() fuse.gvfs-
Output information may be incomplete.
gnome-key 3930 mward 7u unix 0xf50c5c00 9417 /tmp/keyring-
gnome-key 3930 mward 16u unix 0xf52ce000 10327 /tmp/orbit-
gnome-key 3930 mward 17u unix 0xf52ce8c0 10330 /tmp/orbit-
gnome-key 3930 mward 18u unix 0xf52cea80 10331 /tmp/keyring-
gnome-key 3930 mward 19u unix 0xf52cec40 10333 /tmp/keyring-
$ ps -fp 3971
UID PID PPID C STIME TTY TIME CMD
mward 3971 1 0 11:21 ? 00:00:00 ssh-agent
$ cat ~/.profile
if test -z $SSH_AUTH_SOCK
then
if type ssh-agent >/dev/null 2>/dev/null
then
eval $(ssh-agent)
fi
fi
if test -n $SSH_AUTH_SOCK
then
if type ssh-add >/dev/null 2>/dev/null
then
if ! ssh-add -l >/dev/null
then
fi
fi
fi