Sometimes my SSH session disconnects with a Write failed: Broken pipe message. What does it mean? And how can I keep my session open?
I know about screen, but that's not the answer I'm looking for. I think this is a sshd config option.
|
Sometimes my SSH session disconnects with a I know about |
|||
|
|
|
It's possible that your server closes connections that are idle for too long.
You can update either your client (
To update your server (and restart your
Or client-side:
|
|||
|
|
|
To make a complementary of Gert's answer, I wrote this article to solve this SSH issue: http://nextspaceship.com/2011/09/how-to-solve-broken-pipe-message-in-ssh-session/ Sometimes the network is unstable, so we need a script to auto restart the ssh session, don't we? |
|||
|
|
It usually means that your network (TCP) connection was reset. E.g. your internet provider reconnected you or something like this. |
|||
|
|
|
Another cause for the "Broken Pipe message" is that another machine is attempting use the same IP as your host. A simple way to test if someone else is using that IP:
To find out which machines are on your network, you can use this Unix & Linux question title: How to find what other machines are connected to the local network. |
||||
|
|