Skip to content

Instantly share code, notes, and snippets.

@andmax
Created May 22, 2020 10:34
Show Gist options
  • Save andmax/08b4dd7a941ce0da0077db6bdfa8ffb6 to your computer and use it in GitHub Desktop.
Save andmax/08b4dd7a941ce0da0077db6bdfa8ffb6 to your computer and use it in GitHub Desktop.
Add SSH public key from local .ssh/id_rsa.pub to remote .ssh/authorized_keys
ssh <user>@<machine> "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