OL 8 must force a frequent session key renegotiation for SSH connections to the server.

STIG ID: OL08-00-040161  |  SRG: SRG-OS-000033-GPOS-00014 |  Severity: medium |  CCI: CCI-000068 |  Vulnerability Id: V-248868 | 

Vulnerability Discussion

Unapproved mechanisms that are used for authentication to the cryptographic module are not verified and therefore cannot be relied on to provide confidentiality or integrity, and DoD data may be compromised.

Operating systems using encryption are required to use FIPS-compliant mechanisms for authenticating to cryptographic modules.

Session key regeneration limits the chances of a session key becoming compromised.

Check

Verify the SSH server is configured to force frequent session key renegotiation with the following command:

$ sudo grep -i RekeyLimit /etc/ssh/sshd_config

RekeyLimit 1G 1h

If "RekeyLimit" does not have a maximum data amount and maximum time defined or is missing or commented out, this is a finding.

Fix

Configure the system 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" file:

RekeyLimit 1G 1h

The SSH daemon must be restarted for the settings to take effect.

$ sudo systemctl restart sshd.service