Skip to content

Instantly share code, notes, and snippets.

@espinz
Created April 16, 2019 07:45
Show Gist options
  • Select an option

  • Save espinz/46ab8685f51b7f8f4d6bb2f506edff4e to your computer and use it in GitHub Desktop.

Select an option

Save espinz/46ab8685f51b7f8f4d6bb2f506edff4e to your computer and use it in GitHub Desktop.
Copy a local public key into a remote host
# Useful snippet: copy a public key into a remote host
cat .ssh/id_rsa.pub | ssh usr@target 'cat >> .ssh/authorized_keys'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment