Skip to content

Instantly share code, notes, and snippets.

@wention
Forked from elonmallin/ssh-copy-id.ps1
Created July 13, 2023 02:26
Show Gist options
  • Save wention/75ed9b5530e12b1237f00594b7acf50b to your computer and use it in GitHub Desktop.
Save wention/75ed9b5530e12b1237f00594b7acf50b to your computer and use it in GitHub Desktop.
One-liner ssh-keygen and ssh-copy-id for Windows powershell
ssh-keygen && cat $env:userprofile/.ssh/id_rsa.pub | ssh user@linuxserver 'cat >> .ssh/authorized_keys'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment