Skip to content

Instantly share code, notes, and snippets.

@pipme
Created July 11, 2019 13:15
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 pipme/19286a5f647543bc4191a0976b0ae30b to your computer and use it in GitHub Desktop.
Save pipme/19286a5f647543bc4191a0976b0ae30b to your computer and use it in GitHub Desktop.
# local
ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub | ssh demo@198.51.100.0 "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment