Blog DavTar

January 15, 2010

ssh keychain

Filed under: System Administration — cygnl7 @ 10:30 pm

For the longest time I’ve maintained my own ssh-agent management scripts.  Every time I set up a new box I’ve had to go out and gather the information all over again.  But no more!

Enter keychain.  Someone finally decided to create a script that does ssh-agent management and does it well.  It looks like it came from gentoo, but is available through the ubuntu apt repositories.  (The new homepage also has mac packages:  http://www.funtoo.org/en/security/keychain/intro/ .)  After

sudo aptitude install keychain

(Yeah, I recently started using aptitude in the hope that when I uninstall dependencies get uninstalled, too.)  I added this to my .bashrc (maybe it should have been .profile, I never keep those things straight):

eval `keychain --eval ~/.ssh/id_rsa`

You could add more keys to the command right before the last ` to get it to add more.

Now ssh-agent just works!

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: