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:
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'.