Last active
December 14, 2015 12:19
-
-
Save baniol/5085732 to your computer and use it in GitHub Desktop.
ssh-keygen && copy to a remote server
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
# 1) generate ssh key on your local machine | |
ssh-keygen | |
#2) copy your public key to a remote machine with port number | |
ssh-copy-id '-p XXXXX -i ~/.ssh/id_rsa_your_key.pub username@host' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment