openssh and windows

Download latest .zip of OpenSSH.  and extract it to "C:\Program Files"

Control Panel => System => Advanced System Settings => click Environmental Variables.

Click Edit...

Click New and add the OpenSSH folder path.

Run powershell as administrator and run .\install-sshd.ps1

Generate host-key:
.\ssh-keygen -A

If you have problems while generating key, you can try fix permissions in powershell.

Open services => OpenSSH SSH Server => Automatic => Start => OK

Open firewall 22/tcp