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
# /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: