Skip to content

Instantly share code, notes, and snippets.

@izumskee
Created June 2, 2016 15:01
Show Gist options
  • Save izumskee/82504f6b15d82f9c65a7d9c41d93d535 to your computer and use it in GitHub Desktop.
Save izumskee/82504f6b15d82f9c65a7d9c41d93d535 to your computer and use it in GitHub Desktop.
Add SSH key to remote server
cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> .ssh/authorized_keys'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment