Client_loop: send disconnect: Broken pipe

I login as my-user-name@my-server-domain-name-here and I am getting this error when I leave my ssh session open for some time

client_loop: send disconnect: Broken pipe

How can I fix this and stay connection up?

Check your sshd:

vim /etc/ssh/sshd_config

search for ClientAliveInterval - Is it commented or Uncommented:

If it’s you can uncomment it, or increase the interval, Or just comment it out. Let me know how it goes.

Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki