• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

timeout

Increase SSH Timeout

August 25, 2020

Here’s how to keep your SSH timeout alive for a longer period.

Edit /etc/ssh/sshd_config. Adjust interval and count max.

ClientAliveInterval 1200
ClientAliveCountMax 3

ClientAliveInterval 1200 ClientAliveCountMax 3

ClientAliveInterval is set to 1200 and ClientAliveCountMax is set to the default which is 3. This means unresponsive SSH clients will be disconnected after approximately 3600 seconds or 1 hour.

Filed Under: Linux Tagged With: clientalivecountmax, clientaliveinterval, ssh, timeout

  • Home
  • About
  • Archives

Copyright © 2023