ssh-agent and ssh-add on FreeBSD
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: [bluethu...@lbsd2:~]#ssh sum1 Enter passphrase for key '/home/bluethundr/.ssh/id_rsa': [bluethu...@lbsd2:~]#exec ssh-agent bash [bluethu...@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!! -- Here's my RSA Public key: gpg --keyserver pgp.mit.edu --recv-keys B6D6EAC3 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ssh-agent and ssh-add on FreeBSD
On Mon, Nov 29, 2010 at 8:40 AM, bluethundr bluethu...@gmail.com 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: [bluethu...@lbsd2:~]#ssh sum1 Enter passphrase for key '/home/bluethundr/.ssh/id_rsa': [bluethu...@lbsd2:~]#exec ssh-agent bash [bluethu...@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-agentsektion=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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ssh-agent and ssh-add on FreeBSD
On Mon Nov 29 10, Brandon Gooch wrote: On Mon, Nov 29, 2010 at 8:40 AM, bluethundr bluethu...@gmail.com 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: [bluethu...@lbsd2:~]#ssh sum1 Enter passphrase for key '/home/bluethundr/.ssh/id_rsa': [bluethu...@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 [bluethu...@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-agentsektion=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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ssh-agent and ssh-add on FreeBSD
On 29/11/2010 19:08, Alexander Best wrote: [bluethu...@lbsd2:~]#ssh sum1 Enter passphrase for key '/home/bluethundr/.ssh/id_rsa': [bluethu...@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. 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 -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature