Automatic login with public/private keys and SSHThis is a featured page

  • If you are using windows, open a CYGWIN shell, mac, then open your terminal.
# ssh-keygen

  • Follow all the prompts, and accept all the defaults.
  • This creates a file in your home directory: ~/.ssh/id_rsa.pub, copy this to the machine you want to automatically log into, put it in the file ~/.ssh/authorized_keys.
# mkdir .ssh
# chmod 700 .ssh
# cat id_rsa.pub >> .ssh/authorized_keys
# chmod 700 .ssh/authorized_keys
# rm -f id_rsa.pub


ftravers
ftravers
Latest page update: made by ftravers , Apr 6 2009, 10:26 PM EDT (about this update About This Update ftravers Edited by ftravers

71 words added

view changes

- complete history)
Keyword tags: None
More Info: links to this page
There are no threads for this page.  Be the first to start a new thread.