Common Controls Hub
The SSH daemon must set a timeout count on idle sessions.
This ensures a user login will be terminated as soon as the "ClientAliveCountMax" is reached.
Red Hat Enterprise Linux 6 Security Technical Implementation Guide
Check Text ( C-46168r1_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:
If it is not, this is a finding.
Fix Text (F-43558r1_fix)
To ensure the SSH idle timeout occurs precisely when the "ClientAliveCountMax" is set, edit "/etc/ssh/sshd_config" as follows: