Created
May 22, 2020 10:34
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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