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 …