Skip to content

Instantly share code, notes, and snippets.

@rubeniskov
Created November 23, 2015 20:08
Show Gist options
  • Save rubeniskov/9b66a55b6e169e17cd62 to your computer and use it in GitHub Desktop.
Save rubeniskov/9b66a55b6e169e17cd62 to your computer and use it in GitHub Desktop.
cat ~/.ssh/id_rsa.pub | ssh username@hostname "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
@agalera
Copy link

agalera commented Nov 24, 2015

in linux

ssh-copy-id username@hostname

@rubeniskov
Copy link
Author

Yep, I know, but doesn't exists in macosx

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