Last active
October 13, 2015 17:47
-
-
Save igorescobar/4232886 to your computer and use it in GitHub Desktop.
Putting your public key into server's authorized keys.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You will overwrite the authorized keys that way.
Better:
cat ~/.ssh/id_rsa.pub | ssh -p 5022 USER@IP_SERVER "cat >> ~/.ssh/authorized_keys"