Skip to content

Instantly share code, notes, and snippets.

@Teino1978-Corp
Last active November 21, 2015 09:52
Show Gist options
  • Save Teino1978-Corp/62e7c7d2561bfea95d31 to your computer and use it in GitHub Desktop.
Save Teino1978-Corp/62e7c7d2561bfea95d31 to your computer and use it in GitHub Desktop.
Add Public SSH Key to Remote Server in a Single Command - http://www.howtogeek.com/168147/add-public-ssh-key-to-remote-server-in-a-single-command/

Add ssh key to host in two line

ssh-keygen -t rsa
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