blog-banner

Preventing SSH Idle Connection Timeout (Linux)

    SSH Connection Timeout Linux

    If you are a Linux-Based developer & had to access servers through SSH, one of the most common issues you'd face is that your SSH connection gets timed out (disconnected) if you don't use it for some time.

    To prevent connection timeout, just add the line below to /etc/ssh/ssh_config:

    ServerAliveInterval 60

    (the above command will PING the server every 60 seconds - so the server will keep the session active).

    Have an uninterrupted working session!