Configure SSH

From Organic Design wiki
Revision as of 22:42, 29 December 2011 by Nad (talk | contribs) (Set up key-based login and other important security settings for SSH access)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Procedure.svg Configure SSH
Organic Design procedure

To set up key-based login, first create a pub/private key combo:

ssh-keygen -t rsa

That will create the files (id_rsa and id_rsa.pub) in your ~/.ssh folder. You then copy the pub one to a file called authorized_keys in your ~/.ssh folder in any machines you want to log in to without using password.

You may need to adjust your /etc/ssh/sshd_config to allow it by setting RSAAuthentication and PubkeyAuthentication to yes and also check that the file it expects the pub key to be in is indeed ~/.ssh/authorized_keys in the AuthorizedKeysFile setting.

You can also prevent password login if you like as key-based login is stronger, just set the PasswordAuthentication setting to no.

See also