From owner-freebsd-questions@FreeBSD.ORG Wed Jun 1 23:54:03 2005 Return-Path: X-Original-To: freebsd-questions@FreeBSD.org 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 5814516A41C for ; Wed, 1 Jun 2005 23:54:03 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9970943D4C for ; Wed, 1 Jun 2005 23:54:02 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by aiolos.otenet.gr (8.13.4/8.13.4/Debian-1) with ESMTP id j51Ns1bx003903; Thu, 2 Jun 2005 02:54:01 +0300 Received: from gothmog.gr (patr530-b166.otenet.gr [212.205.244.174]) by kane.otenet.gr (8.13.4/8.13.4/Debian-1) with ESMTP id j51Npqka013373; Thu, 2 Jun 2005 02:51:53 +0300 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.3/8.13.3) with ESMTP id j51NrsWq001773; Thu, 2 Jun 2005 02:53:54 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.3/8.13.3/Submit) id j51NrsRU001772; Thu, 2 Jun 2005 02:53:54 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 2 Jun 2005 02:53:54 +0300 From: Giorgos Keramidas To: Steven Friedrich Message-ID: <20050601235354.GB1597@gothmog.gr> References: <200506011449.45455.FreeBSD@InsightBB.com> <429E0B57.2070701@scls.lib.wi.us> <20050601203839.GH21127@gentoo-npk.bmp.ub> <200506011757.57097.FreeBSD@InsightBB.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200506011757.57097.FreeBSD@InsightBB.com> Cc: freebsd-questions@FreeBSD.org Subject: Re: can't figure out ssh, read lots of docs... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2005 23:54:03 -0000 On 2005-06-01 17:57, Steven Friedrich 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 :-)