Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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
38 replies

Dec 13, 2012 5:19 PM in response to blist

Okay. So this was driving me absolutely nuts!!! I am a network admin and I purchased a new MacBook and I couldn't keep an SSH session alive for more than like 10 seconds without getting a broken pipe to any of about a thousand devices I have access to.


I have tried a million things and I FINALLY fixed this. I hope this helps everyone else out there with this problem that couldn't find a solution. I changed my client side (MacOS X) SSH keepalive to an insanely high number. Seems to have done the trick. It also seems to have fixed connectivity problems between other protocols as weel, such as RDP. I do not use RDP as frequently but I was having connectivity problems there as well that seem to have been rectified.


I hope this helps!


sudo sysctl -w net.inet.tcp.always_keepalive=xx


In my case, sudo sysctl -w net.inet.tcp.always_keepalive=9999

May 12, 2014 11:37 AM in response to kr4m17

Thanks this worked for me!

kr4m17 wrote:


Okay. So this was driving me absolutely nuts!!! I am a network admin and I purchased a new MacBook and I couldn't keep an SSH session alive for more than like 10 seconds without getting a broken pipe to any of about a thousand devices I have access to.


I have tried a million things and I FINALLY fixed this. I hope this helps everyone else out there with this problem that couldn't find a solution. I changed my client side (MacOS X) SSH keepalive to an insanely high number. Seems to have done the trick. It also seems to have fixed connectivity problems between other protocols as weel, such as RDP. I do not use RDP as frequently but I was having connectivity problems there as well that seem to have been rectified.


I hope this helps!


sudo sysctl -w net.inet.tcp.always_keepalive=xx


In my case, sudo sysctl -w net.inet.tcp.always_keepalive=9999

ssh connections dropping

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