SV-285318r1211182_rule
V-285318
SRG-OS-000163-GPOS-00072
WN25-SH-000060
CAT II
10
To configure the system, add or modify the following line in the "$env:ProgramData/ssh/sshd_config" file:
ClientAliveCountMax 1
Restart the OpenSSH service for the settings to take effect.
If OpenSSH is not installed on the system, this requirement is not applicable.
Verify the "ClientAliveCountMax" is set to "1" by performing the following command:
C:\ > Get-Content "$env:ProgramData\ssh\sshd_config" | Select-String -Pattern '^\s*ClientAliveCountMax'
ClientAliveCountMax 1
If "ClientAliveCountMax" does not exist, is not set to a value of "1", or is commented out, this is a finding.
V-285318
False
WN25-SH-000060
If OpenSSH is not installed on the system, this requirement is not applicable.
Verify the "ClientAliveCountMax" is set to "1" by performing the following command:
C:\ > Get-Content "$env:ProgramData\ssh\sshd_config" | Select-String -Pattern '^\s*ClientAliveCountMax'
ClientAliveCountMax 1
If "ClientAliveCountMax" does not exist, is not set to a value of "1", or is commented out, this is a finding.
M
5719