SV-209545r610285_rule
V-209545
SRG-OS-000027-GPOS-00008
AOSX-14-000050
CAT II
10
To configure SSHD to limit the number of sessions, use the following command:
/usr/bin/sudo /usr/bin/sed -i.bak 's/^[\#]*MaxSessions.*/MaxSessions 10/' /etc/ssh/sshd_config
To verify that SSHD is limited to 10 sessions, use the following command:
/bin/cat /etc/ssh/sshd_config | grep MaxSessions
The command must return "MaxSessions 10". If it returns null, or a commented value, or the value is greater than "10", this is a finding.
V-209545
False
AOSX-14-000050
To verify that SSHD is limited to 10 sessions, use the following command:
/bin/cat /etc/ssh/sshd_config | grep MaxSessions
The command must return "MaxSessions 10". If it returns null, or a commented value, or the value is greater than "10", this is a finding.
M
2930