From owner-freebsd-questions@FreeBSD.ORG Mon Nov 29 19:08:42 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id D398F1065672; Mon, 29 Nov 2010 19:08:42 +0000 (UTC) Date: Mon, 29 Nov 2010 19:08:42 +0000 From: Alexander Best To: Brandon Gooch Message-ID: <20101129190842.GA57956@freebsd.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Cc: bluethundr , freebsd-questions Subject: Re: ssh-agent and ssh-add on FreeBSD 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: Mon, 29 Nov 2010 19:08:42 -0000 On Mon Nov 29 10, Brandon Gooch wrote: > On Mon, Nov 29, 2010 at 8:40 AM, bluethundr wrote: > > Hey list > > > >  On my CentOS machines I usually keep track of my rsa key with > > ssh-agent, ssh-add and keychain > > > >  I would like to know > > > > a) how to install keychain under FreeBSD > > and > > b) how to fix this error: > > > > [bluethundr@LBSD2:~]#ssh sum1 > > Enter passphrase for key '/home/bluethundr/.ssh/id_rsa': > > [bluethundr@LBSD2:~]#exec ssh-agent bash ^^ this looks wrong. i think you want eval `ssh-agent` so the envars get set. otherwise ssh-add won't know where to look for a running ssh-agent. cheers. alex > > [bluethundr@LBSD2:~]#ssh-add > > Could not open a connection to your authentication agent.a > > > > > > Whenever I try to ssh to another box on the network (with a homedir > > shared amongst all centos  and FreeBSD machines) it prompts me for my > > passphrase. Usually on the CentOS boxes exec ssh-agent bash does the > > trick. Anyone have any idea why this isn't working on the FreeBSD box? > > > > thanks!! > > The man page for ssh-agent is very informative: > > http://www.freebsd.org/cgi/man.cgi?query=ssh-agent&sektion=1 > > I read it recently when setting up my system to do as you're trying to do. > > Of course, don't hesitate to refer to the EXCELLENT FreeBSD Handbook, > it is absolutely one of the best references I've ever seen for any > software: > > http://www.freebsd.org/doc/handbook/openssh.html > > Good luck! > > -Brandon -- a13x