STIGUI
V-248868CAT II — Medium severitySV-248868r1261710_rule

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

Rule version OL08-00-040161 · STIG v2 · 2026-08-24

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 DoW data may be compromised.

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 /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 or is missing or commented out, this is a finding.

If conflicting results are returned, 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

Identifiers

Group ID
V-248868
Group title
SRG-OS-000033-GPOS-00014
Rule ID
SV-248868r1261710_rule
Check ID
C-52302r951582_chk
Fix ID
F-52256r780169_fix