SV-219310r610963_rule
V-219310
SRG-OS-000126-GPOS-00066
UBTU-18-010415
CAT II
10
Configure the Ubuntu operating system to automatically terminate inactive SSH sessions after a period of inactivity.
Modify or append the following line in the "/etc/ssh/sshd_config" file replacing "[Count]" with a value of 1:
ClientAliveCountMax 1
In order for the changes to take effect, the SSH daemon must be restarted.
# sudo systemctl restart sshd.service
Verify that all network connections associated with SSH traffic automatically terminate after a period of inactivity.
Check that "ClientAliveCountMax" variable is set in "/etc/ssh/sshd_config" file by performing the following command:
# sudo grep -i clientalivecountmax /etc/ssh/sshd_config
ClientAliveCountMax 1
If "ClientAliveCountMax" is not set, or not set to "1", or is commented out, this is a finding.
V-219310
False
UBTU-18-010415
Verify that all network connections associated with SSH traffic automatically terminate after a period of inactivity.
Check that "ClientAliveCountMax" variable is set in "/etc/ssh/sshd_config" file by performing the following command:
# sudo grep -i clientalivecountmax /etc/ssh/sshd_config
ClientAliveCountMax 1
If "ClientAliveCountMax" is not set, or not set to "1", or is commented out, this is a finding.
M
4055