Last active
May 30, 2022 19:02
-
-
Save igresc/a2149fe03330fa7ff090fd190a31b7f4 to your computer and use it in GitHub Desktop.
Windows equivalent ssh-copy-id to linux machine
This file contains 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
{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