Skip to content

Instantly share code, notes, and snippets.

@funky-monkey
Created October 19, 2021 11:56
Show Gist options
  • Save funky-monkey/ead04b22f573131ca19e843442afd536 to your computer and use it in GitHub Desktop.
Save funky-monkey/ead04b22f573131ca19e843442afd536 to your computer and use it in GitHub Desktop.

ssh-copy-id -i ~/.ssh/mykey user@host

Test it: ssh -i ~/.ssh/mykey user@host

OR: cat ~/.ssh/raspberry-pi.pub | ssh [email protected] "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys

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