Home > Ubuntu Linux > Keep Your SSH Sessions Alive in Ubuntu

Keep Your SSH Sessions Alive in Ubuntu

May 5th, 2010

You are connected to a server through SSH, then you start doing something else, and by the time you come back to the console, the server kicked you out!

Hehehe, well, there’s an easy fix for that:

Go to your /etc/ssh/ssh_config file and drop this lines at the end:

    TCPKeepAlive yes
    KeepAlive yes
    ServerAliveInterval 30

That will make your SSH client send “I’m here” signals to the server so it doesn’t kick you out :)

Comments

comments

Categories: Ubuntu Linux Tags: ,
  1. Gabriel
    July 19th, 2012 at 18:19 | #1

    Muy bien Georgie!
    Me sirvio mucho tu consejo, saludos desde shopping ib
    :)

  1. No trackbacks yet.