Skip to content

Instantly share code, notes, and snippets.

@OPerepadia
Created May 7, 2022 10:18
Show Gist options
  • Save OPerepadia/b474121cef99aae4cecddc70096dd9a1 to your computer and use it in GitHub Desktop.
Save OPerepadia/b474121cef99aae4cecddc70096dd9a1 to your computer and use it in GitHub Desktop.
Install OpenSSH on Windows

Install OpenSHH on Windows

  1. Download and install latest OpenSSH-*.msi from here.
  2. Modify C:\ProgramData\ssh\sshd_config as follows
    PubkeyAuthentication yes
    #Match Group administrators
    #       AuthorizedKeysFile __PROGRAMDATA__/ssh/administrators_authorized_keys
  3. Add your public key to C:\Users\<user>\.ssh\authorized_keys.
  4. Restart ssh server
    net stop sshd
    net start sshd
  5. Test it
    ssh <user>@win-server-ip 'echo Hello'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment