To prevent disconnections on client side in your SSH terminal you can add this parameter to the configuration file /etc/ssh/ssh_config:
ServerAliveInterval 100
Basically this option will send a null packet to the remote host every 100 seconds and will keep alive the connection.