Skip to content

Instantly share code, notes, and snippets.

@nicoaudy
Created January 6, 2020 04:58
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 nicoaudy/08fc3e242a04e9b3daa841a76d2a42c7 to your computer and use it in GitHub Desktop.
Save nicoaudy/08fc3e242a04e9b3daa841a76d2a42c7 to your computer and use it in GitHub Desktop.
Share preference id_rsa to authorized in server. change the user and host πŸš€
cat ~/.ssh/id_rsa.pub | ssh USER@HOST "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