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

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

Article Topic:Software Development - OSX

Date:March 09, 2017

Recommended Posts