Skip to content

Instantly share code, notes, and snippets.

@igresc
Last active May 30, 2022 19:02
Show Gist options
  • Save igresc/a2149fe03330fa7ff090fd190a31b7f4 to your computer and use it in GitHub Desktop.
Save igresc/a2149fe03330fa7ff090fd190a31b7f4 to your computer and use it in GitHub Desktop.
Windows equivalent ssh-copy-id to linux machine
{IP} => Ex: user@192.168.1.100
"id_rsa.pub" should be the name of the public key file, "id_rsa.pub" is the default of ssh-keygen.
Recomended ed25519 algorithm.
type %USERPROFILE%\.ssh\id_rsa.pub | ssh {IP} "cat >> .ssh/authorized_keys"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment