I use ssh client a lot…Sometimes happens that it disconnects and to keep that session alive you can try this…
open /etc/ssh/ssh_config file and add in the end :
Current user configuration
Do the same with ~/.ssh/config file if you don’t have the file create it
Host * ServerAliveInterval 60
Indent the second line with a space.
If you want to do this just for a single server then in ~/.ssh/config file type :
Host *hostname.com ServerAliveInterval 60
Thanks, hope it helps !
content : HTG