I’m experiencing quite a number of “Write Failed: broken pipe” errors on Mac OS X to Mac OS X connections. Both machines have OpenSSH 7.1p, and the server is listening on port
1522. Both machines are on the local LAN, but I'm actually connecting through my gateway's public (external) IP. The server is a PowerMac, and it’s public facing for a few people who use it for testing under the PowerPC. The Gateway is using port forwarding to map
1522 to the server.
I’ve tried a few workarounds found in the wild, like ensuring
TCPKeepAlive is set to yes in both
~/.ssh/config. The problem persists, and I’m getting frustrated.
A quick search did not reveal troubleshooting steps for the problem. The search did point me back to workarounds found in the wild, like How to prevent “Write Failed: broken pipe” on SSH connection?. But the workarounds usually lack troubleshooting information.
How can I troubleshoot and diagnose “Write Failed: broken pipe”?