STIGQter STIGQter: STIG Summary: Red Hat Enterprise Linux 8 Security Technical Implementation Guide Version: 1 Release: 2 Benchmark Date: 23 Apr 2021:

RHEL 8 must be configured so that all network connections associated with SSH traffic are terminated at the end of the session or after 10 minutes of inactivity, except to fulfill documented and validated mission requirements.

DISA Rule

SV-230244r627750_rule

Vulnerability Number

V-230244

Group Title

SRG-OS-000163-GPOS-00072

Rule Version

RHEL-08-010200

Severity

CAT II

CCI(s)

Weight

10

Fix Recommendation

Configure RHEL 8 to automatically terminate all network connections associated with SSH traffic at the end of a session or after 10 minutes of inactivity.

Modify or append the following lines in the "/etc/ssh/sshd_config" file to have a product value of "600" or less:

ClientAliveInterval 600
ClientAliveCountMax 0

In order for the changes to take effect, the SSH daemon must be restarted.

$ sudo systemctl restart sshd.service

Check Contents

Verify all network connections associated with SSH traffic are automatically terminated at the end of the session or after 10 minutes of inactivity.

Check that the "ClientAliveInterval" variable is set to a value of "600" or less and that the "ClientAliveCountMax" is set to "0" by performing the following command:

$ sudo grep -i clientalive /etc/ssh/sshd_config

ClientAliveInterval 600
ClientAliveCountMax 0

If "ClientAliveInterval" and "ClientAliveCountMax" do not exist, does not have a product value of "600" or less in "/etc/ssh/sshd_config", or is commented out, this is a finding.

Vulnerability Number

V-230244

Documentable

False

Rule Version

RHEL-08-010200

Severity Override Guidance

Verify all network connections associated with SSH traffic are automatically terminated at the end of the session or after 10 minutes of inactivity.

Check that the "ClientAliveInterval" variable is set to a value of "600" or less and that the "ClientAliveCountMax" is set to "0" by performing the following command:

$ sudo grep -i clientalive /etc/ssh/sshd_config

ClientAliveInterval 600
ClientAliveCountMax 0

If "ClientAliveInterval" and "ClientAliveCountMax" do not exist, does not have a product value of "600" or less in "/etc/ssh/sshd_config", or is commented out, this is a finding.

Check Content Reference

M

Target Key

2921

Comments