Bug 475886 - no ssh agent when logging in with AutomaticLogin
Summary: no ssh agent when logging in with AutomaticLogin
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gdm
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: jmccann
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-10 22:09 UTC by Jonathan Kamens
Modified: 2015-01-14 23:22 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-12-22 03:19:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jonathan Kamens 2008-12-10 22:09:29 UTC
When gdm is configured in /etc/gdm/custom.conf with AutomaticLogin to log in a particular user automatically, then when that user logs in there isn't any SSH agent running for him/her.  I don't know of any way to start one up, either, because the agent environment variables would have to be the same for all processes in the session, so they would have to be set within gnome-session before it starts any child processes.

Comment 1 Ray Strode [halfline] 2008-12-10 22:30:25 UTC
gnome-session doesn't use ssh-agent.  gnome-keyring-daemon provides the same functionality, I believe.

Does it work okay without ssh-agent for you?

Comment 2 Jonathan Kamens 2008-12-10 22:33:00 UTC
I'm not talking about the program ssh-agent in particular.  I'm talking about something providing SSH agent functionality.  After automatic login, "ssh-agent -l" doesn't work, which means that there's nothing providing SSH agent functionality.  If it's supposed to be gnome-keyring-daemon doing it, then apparently gnome-keyring-daemon isn't started properly during automatic login.

Comment 3 Ray Strode [halfline] 2008-12-10 22:58:46 UTC
seems like bug 475885 and this one probably have the same root cause.

Comment 4 Matthias Clasen 2008-12-13 19:51:25 UTC
Is gnome-keyring-daemon running after your automatic login ?

Comment 5 Jonathan Kamens 2008-12-14 04:12:38 UTC
Yes, gnome-keyring-daemon is there.

Comment 6 Jonathan Kamens 2008-12-15 14:24:50 UTC
It looks like I was wrong about automatic login being relevant to this.  I could have sworn that before, when I logged out of the automatic login session and logged back in, SSH agent functionality came back, but now, with current packages from rawhide as of this morning, I don't have access to an agent whether I'm logged in automatically or by hand.  And yes, gnome-keyring-daemon is still running.

Oddly, I see this in my ~/.xsession-errors file:

GNOME_KEYRING_SOCKET=/tmp/keyring-WkkiLF/socket
SSH_AUTH_SOCK=/tmp/keyring-WkkiLF/ssh

Additional weirdness... The GNOME_KEYRING_SOCKET variable *is* set in my environment, and if I execute the SSH_AUTH_SOCK setting by hand and export it, then ssh-add -l works again.

So perhaps something is exporting GNOME_KEYRING_SOCKET but forgetting to export SSH_AUTH_SOCK?  Just a guess, probably wrong, but I thought I'd throw it out there.

Comment 7 Ray Strode [halfline] 2008-12-15 18:33:21 UTC

*** This bug has been marked as a duplicate of bug 476300 ***

Comment 8 Jonathan Kamens 2008-12-19 14:43:08 UTC
I was right!  I downgraded to gnome-keyring-2.25.1-1.fc11, and that restores SSH agent functionality when I log in manually, but SSH agent functionality is still missing when I'm logged in through automatic login.  That means that this bug isn't a duplicate of 476300.

Comment 9 Jonathan Kamens 2008-12-22 03:19:12 UTC
Whatever was done to fix bug 476300 apparently fixed this as well, or some other fix was made but in any case it's no longer an issue in gnome-keyring-2.5.2-3.fc11.


Note You need to log in before you can comment on or make changes to this bug.