SV-271705r1091827_rule
V-271705
SRG-OS-000423-GPOS-00187
OL09-00-002342
CAT II
10
Configure OL 9 to force a frequent session key renegotiation for SSH connections to the server by adding or modifying the following line in the "/etc/ssh/sshd_config" or in a file in "/etc/ssh/sshd_config.d":
RekeyLimit 1G 1h
Restart the SSH daemon for the settings to take effect.
$ sudo systemctl restart sshd.service
Verify that OL 9 SSH server is configured to force frequent session key renegotiation with the following command:
$ sudo /usr/sbin/sshd -dd 2>&1 | awk '/filename/ {print $4}' | tr -d '\r' | tr '\n' ' ' | xargs sudo grep -iH '^\s*rekeylimit'
RekeyLimit 1G 1h
If "RekeyLimit" does not have a maximum data amount and maximum time defined, is missing or commented out, this is a finding.
V-271705
False
OL09-00-002342
Verify that OL 9 SSH server is configured to force frequent session key renegotiation with the following command:
$ sudo /usr/sbin/sshd -dd 2>&1 | awk '/filename/ {print $4}' | tr -d '\r' | tr '\n' ' ' | xargs sudo grep -iH '^\s*rekeylimit'
RekeyLimit 1G 1h
If "RekeyLimit" does not have a maximum data amount and maximum time defined, is missing or commented out, this is a finding.
M
5680