Skip to content

Instantly share code, notes, and snippets.

@SteveRyherd
Created March 21, 2013 17:57
Show Gist options
  • Save SteveRyherd/5215152 to your computer and use it in GitHub Desktop.
Save SteveRyherd/5215152 to your computer and use it in GitHub Desktop.
SSH Login without password
# Quick gist of how to generate and place authorized keys
ssh-keygen -t rsa
ssh [user]@[remote] mkdir -p ~/.ssh
cat ~/.ssh/id_rsa.pub | ssh [user]@[remote] 'cat >> ~/.ssh/authorized_keys'
ssh [user]@[remote] hostname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment