STIGQter STIGQter: STIG Summary: Canonical Ubuntu 22.04 LTS Security Technical Implementation Guide Version: 2 Release: 9 Benchmark Date: 01 Jul 2026:

Ubuntu 22.04 LTS must be configured so that all network connections associated with SSH traffic are terminated after 10 minutes of becoming unresponsive.

DISA Rule

SV-260528r1208803_rule

Vulnerability Number

V-260528

Group Title

SRG-OS-000163-GPOS-00072

Rule Version

UBTU-22-255035

Severity

CAT II

CCI(s)

Weight

10

Fix Recommendation

Configure the SSH server to terminate a user session automatically after the SSH client has been unresponsive for 10 minutes.

Note: This setting must be applied in conjunction with UBTU-22-255040 to function correctly.

Add or modify the following line in the "/etc/ssh/sshd_config" file:

ClientAliveInterval 600

Restart SSH for the changes to take effect:

$ sudo systemctl restart ssh

Check Contents

Verify the SSH server automatically terminates a user session after the SSH client has been unresponsive for 10 minutes by using the following command:

$ sudo /usr/sbin/sshd -dd 2>&1 | awk '/filename/ {print $4}' | tr -d '\r' | tr '\n' ' ' | xargs sudo grep -iH 'clientaliveinterval'
/etc/ssh/sshd_config:ClientAliveInterval 600

If "ClientAliveInterval" does not exist or is not set to a value of "600" or less, conflicting results are returned, or it is commented out or missing, this is a finding.

Vulnerability Number

V-260528

Documentable

False

Rule Version

UBTU-22-255035

Severity Override Guidance

Verify the SSH server automatically terminates a user session after the SSH client has been unresponsive for 10 minutes by using the following command:

$ sudo /usr/sbin/sshd -dd 2>&1 | awk '/filename/ {print $4}' | tr -d '\r' | tr '\n' ' ' | xargs sudo grep -iH 'clientaliveinterval'
/etc/ssh/sshd_config:ClientAliveInterval 600

If "ClientAliveInterval" does not exist or is not set to a value of "600" or less, conflicting results are returned, or it is commented out or missing, this is a finding.

Check Content Reference

M

Target Key

5594