<imghch AT gmail DOT com>
Client:
$HOME/.ssh/config
ServerAliveInterval 60
Server:
/etc/ssh/sshd_config
KeepAlive yes ClientAliveInterval 60