Skip to content

Instantly share code, notes, and snippets.

@dewwwald
Forked from larrybotha/A.markdown
Last active August 29, 2015 14:18
Show Gist options
  • Save dewwwald/8d1e19762c80c2c793f2 to your computer and use it in GitHub Desktop.
Save dewwwald/8d1e19762c80c2c793f2 to your computer and use it in GitHub Desktop.

Add Your Public SSH Key To Your Server In One Command

You will need to create .ssh/authorized_keys if it is not yet on your server.

cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> .ssh/authorized_keys'

Generating Your Own Public Key

Github has an excellent guide on generating SSH keys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment