Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8553 - Gnome and Keychain
Summary: Gnome and Keychain
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Seth Chandler
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-29 20:52 UTC by Rusty Phillips
Modified: 2003-04-19 15:25 UTC (History)
1 user (show)

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


Attachments
Patch to use running ssh-agent started by gnome-session (keychain.patch,1.85 KB, patch)
2003-02-21 17:52 UTC, Paul Kronenwetter
Details | Diff
Updated: Patch to use running ssh-agent started by gnome-session (keychain.patch,1.86 KB, patch)
2003-02-21 17:56 UTC, Paul Kronenwetter
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rusty Phillips 2002-09-29 20:52:20 UTC
Gnome starts up a version of ssh-agent when it starts (under
/etc/X11/Sessions/Gnome   and
/etc/X11/gdm/gnomerc ).

This completely interferes with keychain;  it is unable to connect to any
ssh-agent session.

There's a discussion <a
href"http://forums.gentoo.org/viewtopic.php?t=14596&highlight=">here.</a>

The hack, of course, is to edit the two files that start gnome and make sure
that it doesn't execute along with ssh-agent (or that it sources the correct
files so that from that point on keychain works).  It would be nice, however, to
 change keychain so that it can deal with this problem, if you can think of a way.
Comment 1 Paul Kronenwetter 2003-02-21 17:52:50 UTC
Created attachment 8591 [details, diff]
Patch to use running ssh-agent started by gnome-session

A possible solution to use an existing ssh-agent started by gnome-session. 
This is probably sub-optimal for several reasons:
1) the ssh-agent *will* stop when the user logs out.
2) Some code is duplicated within the script and should be modularized.
3) It's only one idea and it hasn't been tested well outside of the gnome
environment.

-Paul
Comment 2 Paul Kronenwetter 2003-02-21 17:56:21 UTC
Created attachment 8592 [details, diff]
Updated: Patch to use running ssh-agent started by gnome-session

Same as patch 8591 but using correct path to executable :)...
Comment 3 Seth Chandler 2003-03-02 15:31:25 UTC
i don't really think that we should use the ssh-agent running from inside of gnome, for the reasons you specified.  The problem with this whole thing is that keychain is designed to keep up an active ssh-agent process, and now gnome wants to do the same thing.   i'm gonna CC the gnome guys on this one, and see if we can't come up with something....

I can't even figure out why gnome needs and ssh-agent :/

anyway, thanks for the patches, even if we don't use them :-)
Comment 4 Seth Chandler 2003-04-19 15:25:38 UTC
i think the solution here is to actually change gnome to use KEYCHAIN =)

if we use the ssh-agent started by gnome, we're defeating the point of keychain...

as we want to keep that ssh agent session around, and gnome will just kill it when the session is over...

like i said, changing keychain to suit gnome just isn't a good idea...it defeats the whole point of keychain...

for this reason, i'm marking this as invalid, i'll be making changes to the gnomerc from within the keychain ebuild (hopefully) within the next couple of weeks...

seth