Configure SSH

From Organic Design wiki
Revision as of 18:11, 22 May 2015 by 127.0.0.1 (talk) (Change source-code blocks to standard format)
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