SSH Auto Login

From Nocrashwiki
Revision as of 18:59, 28 February 2017 by Chris (talk | contribs)
(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_keys

Enjoy!