Tagged articles
1 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
May 14, 2023 · Operations

How to Keep SSH Sessions Alive and Prevent Timeout

This tutorial explains why SSH connections close, shows how to configure both client and server settings—including creating the .ssh/config file, setting ServerAliveInterval, ServerAliveCountMax, and adjusting /etc/ssh/sshd_config—to keep sessions alive until you intentionally close the terminal.

ClientAliveIntervalKeepaliveLinux
0 likes · 7 min read
How to Keep SSH Sessions Alive and Prevent Timeout