Question

packet_write_wait: Connection to xxx.xx.xxx.xxx port 22: Broken pipe

Posted July 15, 2019 4.4k views
Linux BasicsDigitalOceanLinux CommandsUbuntu 18.04
When i'm trying to ssh to the server ssh user@xxx.xx.xxx.xxx 

i’m getting packet_write_wait: Connection to xxx.xx.xxx.xxx port 22: Broken pipe output. I googled for this issue. For the first time solution ssh -o IPQoS=throughput user@xxx.xx.xxx.xxx helped me to connect. But now even this doesn’t help.
i tried to configure ~/.ssh/config file like this:
Host *
ServerAliveInterval 30
ServerAliveCountMax 5
- doesn’t help.
Also i read about MOSH, but it needs to be installed on the server, not only on the client (i may be wrong), but how can i install it on the server, if i’m getting error while trying to connect…
Is there any solution?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hello,

What you could try is adding the -vvv tag so that you could get some verbose out put which could point you to the direction why the connection is failing.

Regarding the MOSH installation, you could do that via the web console that Digital Ocean provides you with. Just go to your DO control panel -> click on the droplet that you want to manage -> click on Access -> click ‘Launch console’.

Hope that this helps!
Bobby

Submit an Answer