SSH sessions vs CellC

Trybble

Well-Known Member
Joined
Sep 24, 2005
Messages
108
Greetings!

Over the past couple of months, I've been noticing an annoying tendency for SSH sessions to some of my office servers to be reset if they're left idle for about a minute. So much so that, unless I use 'screen' on the servers to preserve what I'm doing, I end up losing whatever I might be doing just by flipping over to another workspace.

I've tested this behaviour using three different dongles (E1752, E1820 and MF190) connected to the USB port on the laptop (Toshiba Satellite 850) as well as via several different 3G routers (Huawei HG532c, Billion BiPAC 7300NX, TP-Link TL-MR3220 and Tenda 3G611R+) with prepaid SIMs from Vodacom, MTN and CellC. I've also tested for the same behaviour on a Neotel datacard (AC2736), both direct and via a Tenda 3G611R+ router. Vodacom and MTN will let the session run idle for over an hour, Neotel will leave it alone until I decide to close it and CellC drops it after a minute or so. There's some variability on CellC - sometimes a few seconds, sometimes a couple of minutes, but an idle SSH session will get dropped very quickly, and it's always the same:

> Write failed: Broken pipe

I'm sure it's not a signal strength issue - MTN is around 22% on a good day, Vodacom around 32%, CellC is pretty much always up around 60%. I can't see what the Neotel signal strength is like. At the moment, all I can conclude is that CellC has got something going on their network that is killing off sessions and it's making life really difficult. :(

*Trybble
 

stricken

Expert Member
Joined
Sep 5, 2010
Messages
2,265
I used to get the same... drove me bananas... i ended up writing a script that fetched a byte from a remote server every 5 seconds using curl.

to this day i still dont know WTF these people are smoking killing encrypted connections like that.
 

Trybble

Well-Known Member
Joined
Sep 24, 2005
Messages
108
mosh looks interesting but I'll probably be flayed alive if I suggest opening 1000 UDP ports. I'll give it a look on my test box but I'm starting to think that running a VPN link might be my only practical option, if CellC doesn't fix this.

I also tried doing the 'ping' trick, a scripted fetch, even pushed SSH keepalives to 10 seconds - the session still gets chomped. I've had an idle one via Vodacom now for 3 hours and it's still live - via CellC it'd have been killed in the time it takes me to get up and go to the fridge for a cooldrink! :(

I'm hoping CellC can sort it out.
 

Trybble

Well-Known Member
Joined
Sep 24, 2005
Messages
108
I'm still hoping that CellC can sort it out... maybe their in-forum rep could shed some light?

Maybe?
 

ginggs

༼ つ ◕_◕ ༽つ
Super Moderator
Joined
Jun 26, 2006
Messages
12,151
mosh looks interesting but I'll probably be flayed alive if I suggest opening 1000 UDP ports. I'll give it a look on my test box but I'm starting to think that running a VPN link might be my only practical option, if CellC doesn't fix this.
What's the difference between opening one port and a thousand ports?
I'm still hoping that CellC can sort it out... maybe their in-forum rep could shed some light?
I suggest you call 140 and report the fault. If you get no joy from them, PM the reference number to Cell_C.
 

cb22

Active Member
Joined
Jun 30, 2005
Messages
71
Greetings!

Over the past couple of months, I've been noticing an annoying tendency for SSH sessions to some of my office servers to be reset if they're left idle for about a minute. So much so that, unless I use 'screen' on the servers to preserve what I'm doing, I end up losing whatever I might be doing just by flipping over to another workspace.

I've tested this behaviour using three different dongles (E1752, E1820 and MF190) connected to the USB port on the laptop (Toshiba Satellite 850) as well as via several different 3G routers (Huawei HG532c, Billion BiPAC 7300NX, TP-Link TL-MR3220 and Tenda 3G611R+) with prepaid SIMs from Vodacom, MTN and CellC. I've also tested for the same behaviour on a Neotel datacard (AC2736), both direct and via a Tenda 3G611R+ router. Vodacom and MTN will let the session run idle for over an hour, Neotel will leave it alone until I decide to close it and CellC drops it after a minute or so. There's some variability on CellC - sometimes a few seconds, sometimes a couple of minutes, but an idle SSH session will get dropped very quickly, and it's always the same:

> Write failed: Broken pipe

I'm sure it's not a signal strength issue - MTN is around 22% on a good day, Vodacom around 32%, CellC is pretty much always up around 60%. I can't see what the Neotel signal strength is like. At the moment, all I can conclude is that CellC has got something going on their network that is killing off sessions and it's making life really difficult. :(

*Trybble

I'm not sure if you've had any success in solving your issue - but it's probably related to their NAT killing off idle TCP sessions quicker than SSH sends data.

There's a good article on adding keepalives to your SSH session here - http://www.howtogeek.com/howto/linux/keep-your-linux-ssh-session-from-disconnecting/

Also, there's always autossh - which will reconnect you should your session drop for any reason. Normally it's used to have a persistent SSH tunnel, but it works just as well interactively :)
 
Top