<>

2.1. Keep alive

Client:

$HOME/.ssh/config
ServerAliveInterval 60

Server:

/etc/ssh/sshd_config
KeepAlive yes
ClientAliveInterval 60