From owner-freebsd-questions@FreeBSD.ORG Mon Nov 29 22:18:39 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26A05106566B; Mon, 29 Nov 2010 22:18:39 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3fd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 770AB8FC19; Mon, 29 Nov 2010 22:18:38 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id oATMISEF021445 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 29 Nov 2010 22:18:34 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk oATMISEF021445 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1291069115; bh=oC1t+UYaLNpqZxWNL40d2ju+cg2BJkj94aJqKnpREfc=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4CF426AC.6030507@infracaninophile.co.uk>|Date:=20M on,=2029=20Nov=202010=2022:18:20=20+0000|From:=20Matthew=20Seaman= 20|User-Agent:=20Mozilla/5.0=20(M acintosh=3B=20U=3B=20Intel=20Mac=20OS=20X=2010.6=3B=20en-US=3B=20r v:1.9.2.12)=20Gecko/20101027=20Thunderbird/3.1.6|MIME-Version:=201 .0|To:=20Alexander=20Best=20|CC:=20Brandon=20 Gooch=20,=20=0D=0A=20bluethundr=20,=0D=0A=20freebsd-questions=20|Subject:=20Re:=20ssh-agent=20and=20ssh-add=20on=20F reeBSD|References:=20=09=20<20101129190842.GA57956@freebsd.org>|In-Rep ly-To:=20<20101129190842.GA57956@freebsd.org>|X-Enigmail-Version:= 201.1.1|OpenPGP:=20id=3D60AE908C|Content-Type:=20multipart/signed= 3B=20micalg=3Dpgp-sha1=3B=0D=0A=20protocol=3D"application/pgp-sign ature"=3B=0D=0A=20boundary=3D"------------enigC91636D14D279260E9D8 1237"; b=oWsZjjszng/GCytDb8s0XGOcIDt+80ZGal4dPL3gPplptxS9YSON/vCYQu1punNqG e5wWmChUtcorGU0YbVxssonO11QXNAt6f5dGGXbcj4Oabze94g3wi2X4f2WS85e8pn o5EDlEsuXzLa5b4d2PnZ2gi5jVoygM5GGvPATF1c= Message-ID: <4CF426AC.6030507@infracaninophile.co.uk> Date: Mon, 29 Nov 2010 22:18:20 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: Alexander Best References: <20101129190842.GA57956@freebsd.org> In-Reply-To: <20101129190842.GA57956@freebsd.org> X-Enigmail-Version: 1.1.1 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigC91636D14D279260E9D81237" X-Virus-Scanned: clamav-milter 0.96.4 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lucid-nonsense.infracaninophile.co.uk Cc: Brandon Gooch , 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 22:18:39 -0000 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--