Date: Thu, 2 Jun 2005 02:53:54 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Steven Friedrich <FreeBSD@InsightBB.com> Cc: freebsd-questions@FreeBSD.org Subject: Re: can't figure out ssh, read lots of docs... Message-ID: <20050601235354.GB1597@gothmog.gr> In-Reply-To: <200506011757.57097.FreeBSD@InsightBB.com> References: <200506011449.45455.FreeBSD@InsightBB.com> <429E0B57.2070701@scls.lib.wi.us> <20050601203839.GH21127@gentoo-npk.bmp.ub> <200506011757.57097.FreeBSD@InsightBB.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-06-01 17:57, Steven Friedrich <FreeBSD@InsightBB.com> wrote: > Thanks to Nathan Kinkade, Roland Smith, Greg Barniskis, and Rick Preston for > the replies. Each gave me quite a bit of info and I'm still digesting it. > > I've been successful using ssh-agent, though I have to enter the passphrase > each time I run my script. That's really only an annoyance now because I'm > developing the script and have to enter it often. That goes away when the > script is stable. Save the output of ssh-agent's invocation somewhere, say in ~/.ssh/rc.agent: $ ssh-agent > .ssh/rc.agent $ . .ssh/rc.agent Then, use ssh-add to load the keys to the background agent: $ ssh-add .ssh/id_dsa Other shells, even ones that are started from different sessions, much later, can source the ~/.ssh/rc.agent script and use the already loaded keys. Make sure you don't leave an ssh-agent running and leave for vacations or something though, because that defeats the entire non-empty password thing :-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050601235354.GB1597>