Skip to content

Instantly share code, notes, and snippets.

@dasgoll
Last active April 14, 2022 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dasgoll/2cef3f6cf73507b65f550abc67ee55f0 to your computer and use it in GitHub Desktop.
Save dasgoll/2cef3f6cf73507b65f550abc67ee55f0 to your computer and use it in GitHub Desktop.
Using ssh-copy-id to copy public key to server
ssh auser@192.168.1.130 sh -c "'cat >> .ssh/authorized_keys'" < /tmp/sami.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment