Share via

Can't install open ssh server in windows 10

Anonymous
2021-11-18T14:55:00+00:00

I am unable to install open ssh server in windows 10. I have used the GUI method (add optional features)but it did not work 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 the CLI method

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

But an error occurred

    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, anyone, help me with the issue.

Windows for home | Windows 10 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2021-11-18T22:34:47+00:00

I installed it recently with the only problem being the stupid not apparent setup after its installed. They made it kind of crappy lol.

Since you are confused, if you can get it installed, just do it from the UI in optional features. It should install from there or your Windows install is not in good shape which is a different issue.

If it is showing installed in optional features then you just haven't done the setup part. Also can try a reboot.

Everything you should need is here:

https://virtualizationreview.com/articles/2020/05/21/ssh-server-on-windows-10.aspx https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse

With the error above, this might help correct your Windows install without a nuke (read everything first including all comments):

https://stackoverflow.com/questions/53917787/error-with-windows-10-powershell-get-windowscapability-and-add-windowscapability

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2021-11-19T14:03:29+00:00

    I have installed it without the optional features or the PowerShell command as shown in this blog here: https://www.saotn.org/manually-install-openssh-in-windows-server/

    Thank you for your reply

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2021-11-18T22:22:47+00:00

    Hello Adithyansm,

    Thank you for bringing this to our attention. We appreciate that you've taken the time to post your concern here in Microsoft Community Forum**.**   

    In regards to your issue today. Let me go ahead and assist you.

    Actually, I made an extensive research about your issue. I found some fix the same with the steps you have taken. Your issue is quietly difficult compare to the issue we normally supported.

    What I am going to do now is to refer your to our " Tech Community" because they do have broad knowledge about this and for them to provide the accurate troubleshooting steps that could possibly fix the issue.

    Kindly visit this link as your guide: Windows Tech Community

    We look forward to your response on the results. If you have other clarifications about this matter, you can get back to us by replying to this post.

    Sincerely,       

    Jason Guer,       

    Consumer M365 Forum Moderator

    Was this answer helpful?

    0 comments No comments