Skip to content

Instantly share code, notes, and snippets.

@alikaragoz
Created January 1, 2013 15:22
Show Gist options
  • Save alikaragoz/4428108 to your computer and use it in GitHub Desktop.
Save alikaragoz/4428108 to your computer and use it in GitHub Desktop.
ssh autologin
# 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 remoteuser@remoteserver.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment