Skip to content

Instantly share code, notes, and snippets.

@amaudy
Created December 23, 2015 10:53
Show Gist options
  • Save amaudy/d550e1aa338615cca189 to your computer and use it in GitHub Desktop.
Save amaudy/d550e1aa338615cca189 to your computer and use it in GitHub Desktop.
Copy public key to server

cat ~/.ssh/id_rsa.pub | ssh -i [email protected] 'cat >> .ssh/authorized_keys && echo "Key copied"'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment