I am unable to install open ssh server in windows 10 .I have use the GUI methord (add optional features)but it did not worked then i checked it is already installed or not using powershell
C:\WINDOWS\system32> Get-WindowsCapability -Online | ? name -like "openssh*"And the result was no
Name : OpenSSH.Server~~~~0.0.1.0
State : NotPresentThen I tried to install it using CLI methord
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0But an error occured
Add-WindowsCapability : The service cannot be started, either because it is disabled
or because it has no enabled devices associated with it.
At line:1 char:1
+ Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Add-WindowsCapability], COMException + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsCapabilityCommandPlease any one help me with the issue.
41 Answer
I managed to install it myself by following this blog :