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 


Want me to help develop your next project or application?

Contact Us

Specializing in Ruby-on-Rails, Javascript, Multi-Platform Electron Desktop Apps and Hybrid Cordova Mobile Apps.

Recommended Posts