Created
January 1, 2013 15:22
-
-
Save alikaragoz/4428108 to your computer and use it in GitHub Desktop.
ssh autologin
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
# Generade ssh keys | |
ssh-keygen -t rsa | |
# Make sure the proper rights are set | |
chmod 700 ~/.ssh | |
# Append the public key to the remote hosts authorized keys | |
cat ~/.ssh/id_rsa.pub | ssh -l remoteuser remoteserver.com 'cat >> ~/.ssh/authorized_keys' | |
# You can now login on the remote server without pasword | |
ssh [email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment