SSH Write failed: Broken pipe

Every time I reinstall my system I have to add the line below to my /etc/ssh/ssh_config to avoid “Write failed: Broken pipe” issue.

ServerAliveInterval 120

3 thoughts on “SSH Write failed: Broken pipe”

  1. Nice tip!

    Alternatively edit /etc/ssh/ssh*d*_config on SSH servers that you connect to from multiple clients.

    Instead of ServerAliveInterval, enable ClientAliveInterval.

    It’s a matter of personal preference, but I use these values:
    ClientAliveInterval 15
    ClientAliveCountMax 3

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>