SV-285313r1211167_rule
V-285313
SRG-OS-000423-GPOS-00187
WN25-SH-000010
CAT II
10
To install and start the OpenSSH service, run the following commands:
C:\ > Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
C:\ > Start-Service sshd
C:\ > Set-Service -Name sshd -StartupType 'Automatic'
If OpenSSH is not installed on the system, this requirement is not applicable.
Verify that "OpenSSH" is installed with the following command:
C:\ > Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'
Name : OpenSSH.Client~~~~0.0.1.0
State : Installed
Name : OpenSSH.Server~~~~0.0.1.0
State : Installed
If installed, verify the service is active with the following command:
C:\ > Get-Service sshd
Status Name DisplayName
----- ----- -------------
Running sshd OpenSSH SSH Server
If OpenSSH is installed and the "sshd" service is not "Running", this is a finding.
V-285313
False
WN25-SH-000010
If OpenSSH is not installed on the system, this requirement is not applicable.
Verify that "OpenSSH" is installed with the following command:
C:\ > Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'
Name : OpenSSH.Client~~~~0.0.1.0
State : Installed
Name : OpenSSH.Server~~~~0.0.1.0
State : Installed
If installed, verify the service is active with the following command:
C:\ > Get-Service sshd
Status Name DisplayName
----- ----- -------------
Running sshd OpenSSH SSH Server
If OpenSSH is installed and the "sshd" service is not "Running", this is a finding.
M
5719