When working with some servers you may find they log you out after a set time of inactivity. This can be really annoying, especially when setting them up as you keep finding yourself having to log in again and again, or repeatedly tap enter ever minute.
In order to stop this from happening you can set a TCPKeepAlive request in your ssh config. Essentially sending a request every few seconds, to save you having to tap the enter key.
This may defeat the point of the time out, which is most cases is a security feature, however if you know enough to do this, you are probibly aware of the security risks already.
In order to set this up, you need to create (if not already there) a config file:
cd ~/.ssh
vi config
Then add the following lines:
Host *
Protocol 2
TCPKeepAlive yes
ServerAliveInterval 60
If you then restart terminal your good to go...