ssh connections dropping

since upgrading to lion ssh connections constantly drop with:

Write failed: Broken pipe


this did not happen in snow leopard, nor does it happen on win7 pro in parralels

apple terminal, zoc, and securecrt all experience the same thing


did apple change an idle timeout setting or something?

MacBook Pro, Mac OS X (10.7)

Posted on Aug 16, 2011 6:55 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 14, 2012 8:20 AM

The changes mentioned towards the bottom of this page by subq seem to have fixed this issue for me:


http://subq.surfing.net/os-x-lion-terminal-ssh-tweaks


12 hours+ and the issue has not resurfaced. However, making these changes to your user's ssh config under your own account are more preferable due to future updates overwriting them if made in /private/etc/ssh_config.

38 replies

Nov 19, 2011 8:35 AM in response to larrycz

After 1 day of testing I no longer experience this problem to such an obvious extent (so far it actually seems like it's fixed altogether). The net.inet.tcp.keepidle and net.inet.tcp.keepintvl variables were modified in /etc/sysctl.conf. Their values were extremely low. I don't know how this happened. The solution was to set these values to their default values net.inet.tcp.keepidle=7200000 and net.inet.tcp.keepintvl=75000 using the "sudo sysctl -w" command.

Aug 22, 2011 5:19 PM in response to blist

This Write failed: Broken pipe thing is driving me nuts. As I ssh into the linux server to to all of my work, whenever I try to display something a little bit graphics intensive, the ssh session become unresponsive and drop with the given error.


Would it be a problem with X11.app ? I have tried various version of OpenSSH (5.3 - 5.82p) but they're all the same

Oct 5, 2012 11:02 PM in response to blist

I got same issue with my MacBook Pro but Mountain Lion, My iMac, My Mac Mini, My Mac Pro (mac pro is at my studio and iMac is my home office) I have gone to 10 different locations and on all 12 of my linux servers i got same issues, unless i am on my FreeSWITCH system and in CLI that will remain connected for days on end... 3-10 minutes at bash and i lose connection.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

ssh connections dropping

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.