|Get-WindowsCapability -Online||? Name -like ‘OpenSSH*’|
Had the same issue with clean Windows 10 Ent in domain. Here is the fix:
UseWUServer -> 0
net stop wuauserv && net start wuauserv from cmd
Hope this helps.
Installing OpenSSH with PowerShell
To install OpenSSH using PowerShell, first launch PowerShell as an Administrator. To make sure that the OpenSSH features are available for install:
To uninstall OpenSSH using the Windows Settings, start Settings then go to Apps > Apps and Features > Manage Optional Features. In the list of installed features, select the OpenSSH Client or OpenSSH Server component, then select Uninstall.
To uninstall OpenSSH using PowerShell, use one of the following commands:
A Windows restart may be required after removing OpenSSH, if the service is in use at the time it was uninstalled.
Initial Configuration of SSH Server To configure the OpenSSH server for initial use on Windows, launch PowerShell as an administrator, then run the following commands to start the SSHD service:
Initial use of SSH
Once you have installed the OpenSSH Server on Windows, you can quickly test it using PowerShell from any Windows device with the SSH Client installed. In PowerShell type the following command:
The first connection to any server will result in a message similar to the following:
The answer must be either “yes” or “no”. Answering Yes will add that server to the local system’s list of known ssh hosts.
You will be prompted for the password at this point. As a security precaution, your password will not be displayed as you type.
Once you connect you will see a command shell prompt similar to the following:
The default shell used by Windows OpenSSH server is the Windows command shell.