Windows – Win10 OpenSSH failed to install sshd service

opensshservicessshwindows

I am trying to re-install the OpenSSH Windows 10 feature on my computer, however the sshd service is failing to install. I have tried installing the feature both via the "optional features" and via the elevated Powershell command "Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0"".

I have searched for "sshd" in regedit in-case there was an orphan registry key preventing re-installation, but I did not find anything relevant. In addition, I tried Googling downloads for the service by itself, but could not find anything.

I used to have the Cygwin SSH server installed, and did delete the Cygwin SSH Server service as it share the same name with the Windows SSH Server service, however this did not resolve the issue.

Anyone have any ideas?

Best Answer

OpenSSH should not be added through the Add Feature page in Settings... I'm not sure why Microsoft has it in there, and can only surmise it was an oversight.


Remove OpenSSH that was installed via Add Features first, reboot, then install it via the instructions on the Win32-OpenSSH wiki on Microsoft's PowerShell GitHub.

Related Question