Skip to content

Instantly share code, notes, and snippets.

@harmy
Created February 1, 2013 05:38
Show Gist options
  • Select an option

  • Save harmy/4689522 to your computer and use it in GitHub Desktop.

Select an option

Save harmy/4689522 to your computer and use it in GitHub Desktop.
Copy your ssh public key to a server from a machine that doesn't have ssh-copy-id
cat ~/.ssh/id_rsa.pub | ssh user@machine "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment