SV-270743r1208702_rule
V-270743
SRG-OS-000163-GPOS-00072
UBTU-24-600010
CAT II
10
Configure Ubuntu 24.04 LTS to automatically terminate all network connections associated with SSH traffic at the end of a session or after a 10-minute period of inactivity.
In the file "/etc/ssh/sshd_config", set "ClientAliveInterval" to a value of "600" or less:
ClientAliveInterval 600
Restart SSH for the changes to take effect:
$ sudo systemctl restart ssh
Verify that all network connections associated with SSH traffic are automatically terminated at the end of the session or after 10 minutes of inactivity with the following command:
$ grep -ir ClientAliveInterval /etc/ssh/sshd_config*
/etc/ssh/sshd_config:ClientAliveInterval 600
If "ClientAliveInterval" does not exist, is not set to a value of "600" or less in "/etc/ssh/sshd_config", if conflicting results are returned, is commented out, or is missing, this is a finding.
V-270743
False
UBTU-24-600010
Verify that all network connections associated with SSH traffic are automatically terminated at the end of the session or after 10 minutes of inactivity with the following command:
$ grep -ir ClientAliveInterval /etc/ssh/sshd_config*
/etc/ssh/sshd_config:ClientAliveInterval 600
If "ClientAliveInterval" does not exist, is not set to a value of "600" or less in "/etc/ssh/sshd_config", if conflicting results are returned, is commented out, or is missing, this is a finding.
M
5673