-
-
Save FrancisVarga/1024934 to your computer and use it in GitHub Desktop.
Passwordless SSH Login
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Passwordless SSH Login | |
========================= | |
On the client | |
* generate a RSA keypair | |
* copy the *.pub part to the server, add it to ~/.ssh/authorized_keys | |
* modify your /etc/ssh_config for keepalive (30 sec. is very short - only if you get "broken pipe" errors): | |
ServerAliveInterval 30 | |
On the server, /etc/sshd_config: | |
StrictModes no | |
PubkeyAuthentication yes | |
RSAAuthentication yes | |
AuthorizedKeysFile %h/.ssh/authorized_keys | |
chmod 700 ~/.ssh | |
chmod 600 ~/.ssh/authorized_keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment