Skip to content

Instantly share code, notes, and snippets.

@hanksudo
Created April 19, 2016 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hanksudo/79c6593149c0b5b1b2b417f3c66d68a0 to your computer and use it in GitHub Desktop.
Save hanksudo/79c6593149c0b5b1b2b417f3c66d68a0 to your computer and use it in GitHub Desktop.
Copy public ssh key to remote
cat ~/.ssh/id_rsa.pub | ssh pi@raspberrypi.local "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment