Created
January 20, 2021 09:37
-
-
Save memandip/4bf8753b89e71518a27dc7837f5be792 to your computer and use it in GitHub Desktop.
add ssh key to remote server from terminal
This file contains hidden or 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 remote_user@remote_ip "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