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

July 15, 2019 4k views
Linux Basics DigitalOcean Linux Commands Ubuntu 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?

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

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!