From owner-freebsd-questions@FreeBSD.ORG Sun Feb 20 14:39:32 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 984A716A4CE for ; Sun, 20 Feb 2005 14:39:32 +0000 (GMT) Received: from hosea.tallye.com (joel.tallye.com [216.99.199.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CC7443D1F for ; Sun, 20 Feb 2005 14:39:32 +0000 (GMT) (envelope-from lorenl@alzatex.com) Received: from hosea.tallye.com (hosea.tallye.com [127.0.0.1]) by hosea.tallye.com (8.12.8/8.12.10) with ESMTP id j1KEdVXq028120 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 20 Feb 2005 06:39:31 -0800 Received: (from sttng359@localhost) by hosea.tallye.com (8.12.8/8.12.10/Submit) id j1KEdTFp028118; Sun, 20 Feb 2005 06:39:29 -0800 X-Authentication-Warning: hosea.tallye.com: sttng359 set sender to lorenl@alzatex.com using -f Date: Sun, 20 Feb 2005 06:39:29 -0800 From: "Loren M. Lang" To: kilim Message-ID: <20050220143929.GF4471@alzatex.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050215172327.GA3869@phenix.rootshell.be> User-Agent: Mutt/1.4.1i X-GPG-Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc X-GPG-Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C cc: questions@freebsd.org Subject: Re: SSH-agent setting X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Feb 2005 14:39:32 -0000 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