Skip to content

Instantly share code, notes, and snippets.

@SammyLin
Created May 26, 2015 09:36
Show Gist options
  • Save SammyLin/fb24e5320cb893b4a221 to your computer and use it in GitHub Desktop.
Save SammyLin/fb24e5320cb893b4a221 to your computer and use it in GitHub Desktop.
push public key in remote machine
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