$ sudo vi /etc/ssh/ssh_config

# keep ssh sessions fresh

ServerAliveInterval 60

$ sudo vi /etc/ssh/sshd_config

# keep ssh sessions fresh

ClientAliveInterval 60

$ sudo service ssh restart
Advertisements