execute the command as an Administrator.
cat $env:USERPROFILE\.ssh\KeyToServer.pub | ssh <user@linuxserver> "mkdir ~/.ssh/ ; touch ~/.ssh/authorized_keys ; cat >> ~/.ssh/authorized_keys"
Last active
April 18, 2023 00:07
-
-
Save ZilchBloke/246e04e2dca9969bc4f0dad32fc894d4 to your computer and use it in GitHub Desktop.
ssh-copy-id for powershell. (Windows Client to Linux Server)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment