Skip to content

Instantly share code, notes, and snippets.

@dewwwald
Created September 8, 2015 08:11
Show Gist options
  • Save dewwwald/ad87a4432a70baf1ecf3 to your computer and use it in GitHub Desktop.
Save dewwwald/ad87a4432a70baf1ecf3 to your computer and use it in GitHub Desktop.
SSH

Add ssh key to host in one line

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