MoonPoint Support Logo

 




Advanced Search
August
Sun Mon Tue Wed Thu Fri Sat
           
5
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
2026
Months
AugSep
Oct Nov Dec


Wed, Aug 05, 2026 9:21 pm

SSH ServerAliveInterval

If you want to prevent a Secure Shell (SSH) connection being dropped when it has been inactive for several minutes, you can specify a keepalive value. To specify a keepalive value directly from the command line, use the -o flag followed by the ServerAliveIntervaloption

Command Line Syntax

Run the following command to send a keepalive packet every 60 seconds:

ssh -o ServerAliveInterval=60 user@hostname

Advanced Keepalive Control

For more robust protection against drops, combine the interval with ServerAliveCountMax. This defines how many consecutive keepalive messages can go unanswered before the client disconnects.

ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=3 user@hostname

Making It Permanent (Optional)

If you get tired of typing this out every time, you can save it to your local configuration:

[/network/ssh] permanent link

Valid HTML 4.01 Transitional

Privacy Policy   Contact

Blosxom logo