OpenSSH Server Admin Cheat Sheet/Configure client alive probes

Drop dead sessions after missed keepalive responses.

Section: sshd_config Patterns

Configure client alive probes

sshdconfig
sshdconfig
ClientAliveInterval 60
ClientAliveCountMax 3
Explanation

Drop dead sessions after missed keepalive responses.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing sshd_config Patterns
Disable password authentication
Require key-based authentication on the server.
OpenIn sheetsshdconfigsame section
Disable direct root login
Prevent direct root SSH sessions.
OpenIn sheetsshdconfigsame section
Allow only specific users
Restrict which user accounts may log in.
OpenIn sheetsshdconfigsame section
Allow only specific groups
Restrict logins to group members.
OpenIn sheetsshdconfigsame section
Enable public key auth explicitly
Ensure public key authentication is on.
OpenIn sheetsshdconfigsame section
Customize AuthorizedKeysFile
Point to one or more authorized_keys paths.
OpenIn sheetsshdconfigsame section