SSH-agent setting
Loren M. Lang
lorenl at alzatex.com
Sun Feb 20 14:39:32 GMT 2005
On Tue, Feb 15, 2005 at 06:23:27PM +0100, kilim wrote:
>
> > On Tue, Feb 15, 2005 at 11:51:41AM -0500, Clayton Scott Kern wrote:
> > >
> > > Why not use keychain and put it in the appropriate rc file (.bashrc,
> > > cshrc, etc.), then you'll be connected to the agent automatically.
>
> My bad.
>
> Please disregard my previous email.
>
> I apologise !
>
> Your suggestion is great.
>
> What I didn't realise is that keychain is a great tool which resides
> in /usr/ports/security/keychain and it does this:
>
> "allowing you to easily have one long-running ssh-agent process per
> system, rather than per login session."
Actually, it's simpler than that. Just add the following lines to your
.profile:
export SSH_AUTH_SOCK=/tmp/user.agent
ssh-add -L >/dev/null 2>&1
if [ $? -ge 2 ]; then
ssh-agent -a $SSH_AUTH_SOCK >/dev/null 2>&1
fi
Then you'll just need to run ssh-add once after every reboot to re-add
the key, but the ssh-agent will be accessible from every terminal, X11
session, ssh login, etc. with your username.
>
> as its web site states:
>
> http://www.gentoo.org/proj/en/keychain/index.xml
>
>
> Thank you Clayton !
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
--
I sense much NT in you.
NT leads to Bluescreen.
Bluescreen leads to downtime.
Downtime leads to suffering.
NT is the path to the darkside.
Powerful Unix is.
Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc
Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C
More information about the freebsd-questions
mailing list