Date: Sun, 20 Feb 2005 06:39:29 -0800 From: "Loren M. Lang" <lorenl@alzatex.com> To: kilim <kilim@phenix.rootshell.be> Cc: questions@freebsd.org Subject: Re: SSH-agent setting Message-ID: <20050220143929.GF4471@alzatex.com> In-Reply-To: <20050215172327.GA3869@phenix.rootshell.be> References: <20050215142205.GA28272@phenix.rootshell.be> <55651.213.236.228.129.1108481931.squirrel@mail.adventuras.no> <57240.213.236.228.129.1108483003.squirrel@mail.adventuras.no> <20050215163842.GA10689@phenix.rootshell.be> <20050215165141.GA87901@reddwarf.twcny.rr.com> <20050215171433.GA2345@phenix.rootshell.be> <20050215172327.GA3869@phenix.rootshell.be>
next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050220143929.GF4471>