[lug] ssh-agent under KDE and KNOPPIX
neal at bcn.boulder.co.us
Mon Jun 21 17:06:38 MDT 2004
Thanks - I had heard of keychain and meant to look it up. keychain
looks like a nicely integrated package for doing what I've done for a
long time (reusing a single ssh-agent process and typing a password
only once per system boot). Looking in the ps table is a useful
kludge for finding out a process id. I actually wish they'd fix ssh
so it just needed $SSH_AUTH_SOCK, not $SSH_AGENT_PID also (should be
able to get the PID from a socket, or refer to a file for the PID
rather than requiring an unpredictable number like a pid).
But all I am lacking in this case is just knowing where to hook into
kde. The hook just needs to start ssh-agent and keep the two standard
environment variables in the subsequent environment that desktop
applications inherit. Hooking into a shell via .bashrc works when ssh
is launched from an interactive shell, but sometimes I want to launch
it from a menu item, etc. And I don't want to set up the options so
that even non-interactive bash shells read .bashrc.
On Mon, Jun 21, 2004 at 04:34:27PM -0600, Timothy Klein wrote:
> On Monday 21 June 2004 02:13 pm, Neal McBurnett wrote:
> > Anyone know how to get KDE to use ssh-agent right (i.e. as parent to
> > all applications)? googles I've found refer to stuff that doesn't
> > work, at least under knoppix 3.4.
> > See http://www.knoppix.net/docs/index.php/ssh-agent%20and%20KNOPPIX
> > for a wiki page with "the story so far"...
> > Thanks,
> Is there some reason why you can't just use keychain?
> I just call keychain from my bash login scripts and from .xsession/.xinit
> Is that an unworkable solution with KNOPPIX, as you can't edit .xsession?
> If no, do that. It's really easy.
> A Keychain HowTO:
> Keychain download:
> == Timothy Klein || teece at silverklein.net
> == Vanity Page: http://tinyurl.com/vkhp
> == ----------------------------------------
> == Hello_World.c: 17 Errors, 31 Warnings...
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
More information about the LUG