packet_write_wait: Connection to X.X.X.X port 22: Broken pipe

I was trying to SSH into a machine from my Kali Linux VM shortly after updating packages and encountered this error immediately after authenticating:

packet_write_wait: Connection to X.X.X.X port 22: Broken pipe

I was using VMWare Workstation. SSH on my host was working as expected. Another VM in VirtualBox was working just fine, too. Another VM running an ancient Linux distribution within VMWare was also working just fine. Running my SSH client in verbose mode didn’t yield anything of use for troubleshooting the problem. HMMM…

The affected OpenSSH version was 7.9p1. OpenSSH 7.5p1 was working just fine. After a bit of Googling, I found a solution:

https://communities.vmware.com/thread/590825

ssh -o 'IPQoS=lowdelay throughput' user@host

I ended up adding the option to my ~/.ssh/config as a workaround:

Host *
    IPQoS=lowdelay throughput

Apparently, VMWare’s NAT implementation is broken:

http://openbsd-archive.7691.n7.nabble.com/ssh-problem-on-VMware-Fusion-with-openbsd-6-4-td353064.html

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s