[auton-users] Managing ssh key using keychain

Donghan (Jarod) Wang donghanw at cs.cmu.edu
Wed Apr 11 16:27:15 EDT 2012


Hello lab,

This message describes how to use keychain to allow ssh access from one
host to another without typing password or passphrase in secure way. It
comes in handy in many scenarios, such as cvs operations, ssh from lops to
low1.

It requires a private/public ssh key pair. You can check its existence by
looking into your ssh files, specifically, id_rsa.pub and id_rsa; by
default they are in

/auton/home/<user>/.ssh/
/neill/home/<user>/.ssh/
or /home/<user>/.ssh/

So you have your ssh keys ready (if not, check out this tutorial
http://www.autonlab.org/auton_intranet/skills/sshkeys.html)

Simply append following line to the shell startup file, .bashrc for bash
and zsh and .cshrc for c shell and tcsh.

eval `keychain --eval --agents ssh id_rsa`

That's it.

Let me know if you have any questions. Enjoy,

Jarod

-- 
Donghan (Jarod) Wang
Research Programmer
Robotics Institute
Carnegie Mellon University
5000 Forbes Avenue
Pittsburgh, PA 15213
Email: donghanw at cs.cmu.edu
Tel: +1 412 268 1238
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.srv.cs.cmu.edu/mailman/private/autonlab-users/attachments/20120411/606fa3d2/attachment.html>


More information about the Autonlab-users mailing list