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

Keep Your SSH Sessions Alive in Ubuntu

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 :)

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

  2. July 19th, 2012 at 21:17 | #2

    Ya te habia pasado esas lineas desde que estaba en IB, o no me hiciste caso o jodiste tu compu y la formateaste …. jajaja …

    Saludos dude!

  1. No trackbacks yet.