Can't install open ssh server in windows 10

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 : NotPresent

Then I tried to install it using CLI methord

Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

But 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.AddWindowsCapabilityCommand

Please any one help me with the issue.

4

1 Answer

I managed to install it myself by following this blog :

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like