Skip to content

Instantly share code, notes, and snippets.

@funky-monkey
Created October 19, 2021 11:56
Show Gist options
  • Select an option

  • Save funky-monkey/ead04b22f573131ca19e843442afd536 to your computer and use it in GitHub Desktop.

Select an option

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 user@12.34.56.78 "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