UCF STIG Viewer Logo

The SSH daemon must set a timeout count on idle sessions.


Finding ID Version Rule ID IA Controls Severity
V-217997 RHEL-06-000231 SV-217997r505923_rule Low
This ensures a user login will be terminated as soon as the "ClientAliveCountMax" is reached.
Red Hat Enterprise Linux 6 Security Technical Implementation Guide 2020-09-03


Check Text ( C-19478r377006_chk )
To ensure the SSH idle timeout will occur when the "ClientAliveCountMax" is set, run the following command:

# grep ClientAliveCountMax /etc/ssh/sshd_config

If properly configured, output should be:

ClientAliveCountMax 0

If it is not, this is a finding.
Fix Text (F-19476r377007_fix)
To ensure the SSH idle timeout occurs precisely when the "ClientAliveCountMax" is set, edit "/etc/ssh/sshd_config" as follows:

ClientAliveCountMax 0