packet_write_wait Broken pipe even leaving top running?
Dear 2018 and later readers,
Let me show you a comment from MelBurslan,
If you are in a corporate environment, check with your firewall admins and see if they were updating rules and/or restarting the firewall after some sort of a change when this happens. If it is happening to a personal server of yours, you need to provide more information on what were you doing on the sshd server side, when this happened. Broken pipe generally means there was a network disconnect for some reason.
So basically, if you are trying to use ssh [email protected]
over a VPN (corporate environment). Then this error must be there with you over and over.
The only solution I found so far is mobile-shell. Thanks who created it.
You will need to install mosh-server
in your target (the server you want to ssh'ed to) and mosh-client
in your host machine.
It will auto reconnect when your packets lost, that's pretty cool and suit all our needs, I think.
Update 03/2020:
If you can't install mosh-server
on your servers, then you could use my script here: https://github.com/ohmybash/oh-my-bash/blob/master/tools/autossh.sh
It will auto-reconnect to SSH automatically whenever SSH session dead.
Happy ssh'ing!
I discovered it was an IPQoS option issue on my VMware Guest setup. On the VM I set the ~/.ssh/config value for IPQoS from the default of "IPQoS af21 cs1" being low latency data for interactive first and lower effort for non-interactive for the second. Setting a new value for af21 was my solution:
Host *
IPQoS throughput
Worked for me, otherwise yes MoSH is also worked, but mosh doesn't handling my Proxy setup in a convenient way so I stick with ProxyJump commands in