Prevent SSH Session From Hanging In OSX Terminal
Posted by Weston Ganger
If you have a Mac and keep getting choked when your SSH session says
Write failed: Broken pipe after some inactivity. What you need to do is edit
# /etc/ssh_config ServerAliveInterval 120
That should fix it. Also if it ever does hang you can kill the session without closing the tab by typing
~. and hitting enter.
Related External Links: