I recently upgraded my Macbook to OSX Mojave (10.14.1). Ever since I upgraded whenever I want to open an SSH session to any server on the internal (VMware) network I would receive the following error message:
packet_write_wait: connection to x.y.z. port 22: broken pipe
Very annoying as it made deploying labs in our dev cloud very complicated. I googled around and there were many suggestions on how to solve this, but none worked so far. A colleague today pointed me to thread on VMTN (surprisingly) which describes how to solve the problem. it is very simple, just add “ssh -o IPQoS=throughput” to your normal ssh command. So something like the following:
ssh -o IPQoS=throughput [email protected]
Thanks Alex for the pointer, and thanks Quinn for posting the solution on VMTN! Oh, and yes you can add the following to your ~/.ssh/config so that you don’t have the use the -o flag everytime:
Host * IPQoS=throughput
You can add the parameter in the ~/.ssh/config files.
David Cole says
Thanks for the info. You have a double “ssh” on your command line example
Gaurav Agarwal says
Thank you! This worked perfectly..
thank you, it worked fine..
Thanks! It worked
This problem took some hours of my day. I’m glad you shared the solution. Thanks!
Kolitha Upendra Kuruppu says
Thank you very much. This saved me.
Rich Youngkin says
Sigh, wish I would have found this 2 hours ago. Thanks for sharing!
Niranjan Sathindran says
Thanks! This worked
Tuan Jinn says
Jezzz, I have the same problem on Mojave… thanks a bunch
Duncan Epping says