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.
ssh
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.
Best Answer
It's possible that your server closes connections that are idle for too long. You can update either your client (
ServerAliveInterval
) or your server (ClientAliveInterval
)To update your server (and restart your
sshd
)Or client-side: