I have a Ubuntu 12.04 server I bought, if I connect with putty using ssh and a sudoer user putty gets disconnected by the server after some time if I am idle
How do I configure Ubuntu to keep this connection alive indefinitely?
If you go to your putty settings -> Connection and set the value of "Seconds between keepalives" to 30 seconds this should solve your problem.
In addition to the answer from "das Keks" there is at least one other aspect that can affect this behavior. Bash (usually the default shell on Ubuntu) has a value
In addition I would strongly recommend that you do something else entirely. Set up
Byobu is a nice frontend to both terminal multiplexers, but
Also search for "dotfiles", in particular