Uly.me

cloud engineer

  • Home
  • About
  • Archives
Home/Archives for timeout

August 25, 2020

Increase SSH Timeout

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.

  • Cloud
  • Linux
  • Git

Copyright © 2012–2021