SSH Auto Login

From Nocrashwiki
Revision as of 13:49, 5 August 2010 by Chris (talk | contribs) (Created page with "===SSH public/private key pairs to login=== Want to use ssh public/private key pairs to login instead of typing a password? On the client: $ ssh-keygen -t rsa Enter passphras...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SSH public/private key pairs to login

Want to use ssh public/private key pairs to login instead of typing a password?

On the client:

$ ssh-keygen -t rsa

Enter passphrase (empty for no passphrase):

$ ssh server "mkdir .ssh; chmod 0700 .ssh"
$ scp .ssh/id_rsa.pub server:.ssh/authorized_keys2

Enjoy!