1

I am trying to install OpenSSH on a windows server machine. When i use this command:

Get-WindowsCapability -Online | ? Name -like 'OpenSSH*

I don't get this output:

Name  : OpenSSH.Client~~~~0.0.1.0
State : NotPresent
Name  : OpenSSH.Server~~~~0.0.1.0
State : NotPresent

but it's empty:

OpenSSH Output

When I do:

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

it works, but once I try so start the server:

Start-Service sshd
Set-Service -Name sshd -StartupType 'Automatic'

I get this message error:

Start-Service : Cannot find any service with service name 'sshd'.

  • 1
    Is your Windows Server on version 1709 or newer? – Gerald Schneider May 6 '19 at 9:09
  • @GeraldSchneider it's a Windows Server 2016 Standard – Mouâd Harhar May 6 '19 at 9:19
2

Judging from the Microsoft Documentation, it appears that installing Open SSH through PowerShell in this way is a feature of Windows Server 2019 and not of 2016.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.