Skip to content

Instantly share code, notes, and snippets.

@saman-taghavi
Last active October 1, 2021 08:04
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 saman-taghavi/37ef748308c7fc50c4ff12c926c5165e to your computer and use it in GitHub Desktop.
Save saman-taghavi/37ef748308c7fc50c4ff12c926c5165e to your computer and use it in GitHub Desktop.
copy ssh pub to server for windows pwsh kudos to Christopher Hart
type $env:USERPROFILE\.ssh\id_rsa.pub | ssh {IP-ADDRESS-OR-FQDN} "cat >> .ssh/authorized_keys
@saman-taghavi
Copy link
Author

here is the link to original article on his site Christopher Hart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment