Prevent ssh from disconnecting on client side
~/.ssh/config
:
ServerAliveInterval 10
ServerAliveInterval
: number of seconds that the client will wait before sending a null packet to the server (to keep the connection alive).