Skip to content

Instantly share code, notes, and snippets.

@baniol
Last active December 14, 2015 12:19
Show Gist options
  • Save baniol/5085732 to your computer and use it in GitHub Desktop.
Save baniol/5085732 to your computer and use it in GitHub Desktop.
ssh-keygen && copy to a remote server
# 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