Skip to content

Instantly share code, notes, and snippets.

@macx
Created June 10, 2015 07:31
Show Gist options
  • Select an option

  • Save macx/aa5622abfbbc5bbfa2d4 to your computer and use it in GitHub Desktop.

Select an option

Save macx/aa5622abfbbc5bbfa2d4 to your computer and use it in GitHub Desktop.
Put SSH key on a remote server for authentification
$ cat ~/.ssh/id_rsa.pub | ssh user@foo.bar 'cat >> .ssh/authorized_keys'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment