Created
June 12, 2014 17:12
-
-
Save vallettea/ddf0b83b6d5fdfe42605 to your computer and use it in GitHub Desktop.
to set remote ssh access without password
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
| # on my laptop: | |
| scp ~/.ssh/id_rsa.pub vallette@server_ip | |
| # in ~/.ssh/config | |
| Host linode | |
| User vallette | |
| Hostname server_ip | |
| ServerAliveCountMax 3 | |
| ServerAliveInterval 10 | |
| # on the server | |
| cd | |
| mkdir .ssh | |
| mv id_rsa.pub .ssh/authorized_keys | |
| chown -R vallette:vallette .ssh | |
| 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