Created
April 16, 2019 07:45
-
-
Save espinz/46ab8685f51b7f8f4d6bb2f506edff4e to your computer and use it in GitHub Desktop.
Copy a local public key into a remote host
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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