Apple

Prevent SSH Session From Hanging In OSX Terminal

Posted by Weston Ganger on March 09, 2017

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:


Posted in OSX and Tagged with osx 


Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts