Skip to content
ATO Pathways
Log In
Overview
Search
Catalogs
SCAP
OSCAL
Catalogs
Profiles
Documents
References
Knowledge Base
Platform Documentation
Compliance Dictionary
Platform Changelog
About
Catalogs
XCCDF
Guide to the Secure Configuration of Ubuntu 18.04
Services
SSH Server
Configure OpenSSH Server if Necessary
Set SSH Client Alive Interval
Set SSH Client Alive Interval
An XCCDF Rule
Details
Profiles
Prose
Set SSH Client Alive Interval
Medium Severity
SSH allows administrators to set a network responsiveness timeout interval. After this interval has passed, the unresponsive client will be automatically logged out.
To set this timeout interval, edit the following line in
/etc/ssh/sshd_config
as follows:
ClientAliveInterval
The timeout
interval
is given in seconds. For example, have a timeout of 10 minutes, set
interval
to 600.
If a shorter timeout has already been set for the login shell, that value will preempt any SSH setting made in
/etc/ssh/sshd_config
. Keep in mind that some processes may stop SSH from correctly detecting that the user is idle.