Date: Mon, 29 Nov 2010 22:18:20 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Alexander Best <arundel@freebsd.org> Cc: Brandon Gooch <jamesbrandongooch@gmail.com>, bluethundr <bluethundr@gmail.com>, freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: ssh-agent and ssh-add on FreeBSD Message-ID: <4CF426AC.6030507@infracaninophile.co.uk> In-Reply-To: <20101129190842.GA57956@freebsd.org> References: <AANLkTim6XMPMt8wyyGQ5sLh-V76DobVHRBRgGfAcU5pO@mail.gmail.com> <AANLkTi=O9RJ92wXTyeMHBtt_5T-4PKXe6=BVpcoekXWZ@mail.gmail.com> <20101129190842.GA57956@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigC91636D14D279260E9D81237 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable On 29/11/2010 19:08, Alexander Best wrote: >>> [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 ge= t set. > otherwise ssh-add won't know where to look for a running ssh-agent. Both forms are correct. "eval $(ssh-agent)" modifies the environment in the current shell so ssh-add can contact ssh-agent, whereas "ssh-agent bash" causes ssh-agent to run a copy of bash, which will it will pass down the appropriate environmental settings to. "exec" is just gravy, in that it replaces the current shell with the ssh-agent process, rather than leaving it lying around uselessly. For the OP: no good idea why the command isn't working for you. Try it without the exec and also try it adding '-d' to the ssh-agent flags to see if the debug output contains any clues. Be sure /tmp has the correct permissions (1777) and that the partition hasn't filled up, so running ssh-agent can create a directory containing the unix domain socket ssh-add uses to connect to the agent. As for installing keychain try: # cd /usr/ports/security/keychain # make all install clean or if you've installed it: # portmaster security/keychain Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enigC91636D14D279260E9D81237 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkz0JrQACgkQ8Mjk52CukIw2TQCcDLP7/8J8Bl7G5CMbxGZLiwGX m20AnRI6IXYNf5+KqbH73sIRMlqk7p/O =vyHA -----END PGP SIGNATURE----- --------------enigC91636D14D279260E9D81237--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CF426AC.6030507>