Dashboard > Development > Keychain and SSH
Development Log In   View a printable version of the current page.
Keychain and SSH
Added by Brandon Philips, last edited by Brandon Philips on Mar 30, 2005  (view change)
Labels: 
(None)

Get Ready!

  • Ensure you have Java installed
  • Grab keychain -
    sudo apt-get install keychain

Installation

Setup your SSH keys with passwords if they don't have passwords already.
NOTE: If you have no password press enter when it asks for your old password

ssh-keygen -p -f .ssh/id_dsa
ssh-keygen -p -f .ssh/id_rsa

If the above fails with file not found errors, you my friend do not have ssh keys yet, generate them with this snippet:

ssh-keygen -t rsa
ssh-keygen -t dsa

Now that yours keys are setup, make your keys an authorized keys on the various machines that you will be working on (ben?)

scp .ssh/id_dsa.pub .ssh/id_rsa.pub username@host:~/
ssh username@host
cat id_dsa.pub >> .ssh/authorized_keys2
cat id_rsa.pub >> .ssh/authorized_keys2

Setup keychain in your .bashrc, some minor editing is needed

if [ "$HOSTNAME" == "YOUR_WORKSTATION_HOSTNAME_EDIT_ME" ]; then
 /usr/bin/keychain --quiet ~/.ssh/id_rsa ~/.ssh/id_dsa
 . ~/.keychain/${HOSTNAME}-sh
fi

Now your shell is secure, but what about your email?

See http://oregonstate.edu/net/security/privacy/

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.7 Build:#524 Jul 28, 2006) - Bug/feature request - Contact Administrators