ssh,

Client_loop: send disconnect: Broken pipe

Dec 01, 2022 · 1 min read · Post a comment

Usually, you will get this kind of error client_loop: send disconnect: Broken pipe if you keep your ssh connection open more than the timeout limit. Let’s see how can we potentially fix it.

Prerequisites

  • ssh

Solution

Step 1. Update your ssh server-side settings.

sudo nano /etc/ssh/sshd_config

Step 2. Increase the ClientAliveInterval option.

ClientAliveInterval 100

Step 3. If you need to update the client-side ssh option, run:

echo "ServerAliveInterval 100" >> ~/.ssh/config

Conclusion

Don’t hesitate to put a comment if you have some other useful recommendations in your hands. Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.