Question

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

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?


Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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