Skip to content

Instantly share code, notes, and snippets.

@christoomey
Created April 17, 2011 17:58
Show Gist options
  • Save christoomey/924292 to your computer and use it in GitHub Desktop.
Save christoomey/924292 to your computer and use it in GitHub Desktop.
Copy a public key to a remote host
# Copy the id_rsa.pub public key from local box to remote server
user@hostname "echo `cat ~/.ssh/id_rsa.pub` >> ~/.ssh/authorized_keys"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment