- Download and install latest
OpenSSH-*.msifrom here. - Modify
C:\ProgramData\ssh\sshd_configas followsPubkeyAuthentication yes #Match Group administrators # AuthorizedKeysFile __PROGRAMDATA__/ssh/administrators_authorized_keys
- Add your public key to
C:\Users\<user>\.ssh\authorized_keys. - Restart ssh server
net stop sshd net start sshd
- Test it
ssh <user>@win-server-ip 'echo Hello'
Created
May 7, 2022 10:18
-
-
Save OPerepadia/b474121cef99aae4cecddc70096dd9a1 to your computer and use it in GitHub Desktop.
Install OpenSSH on Windows
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment