Skip to content

Instantly share code, notes, and snippets.

@chaosmail
Created February 15, 2014 08:41
Show Gist options
  • Save chaosmail/9016290 to your computer and use it in GitHub Desktop.
Save chaosmail/9016290 to your computer and use it in GitHub Desktop.
Copy SSH Key to Ubuntu 12.04 LTS
ssh user@server.com
ssh-keygen -t rsa
exit
cat ~/.ssh/id_rsa.pub | ssh user@server.com 'cat >> ~/.ssh/authorized_keys'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment