Skip to content

Instantly share code, notes, and snippets.

@myfavouritekk
Last active August 29, 2015 13:56
Show Gist options
  • Save myfavouritekk/8878605 to your computer and use it in GitHub Desktop.
Save myfavouritekk/8878605 to your computer and use it in GitHub Desktop.
Copy public-key to remote-machine for public-key authentication.
# Copy public-key to remote-machine for public-key authentication
ssh-copy-id someuser@remote-machine
# To specify port number
ssh-copy-id "someuser@remote-machine -p port_number"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment