putty Connection Seemingly Drops

Discussion in 'Server Operation' started by anw, Jun 21, 2009.

  1. anw

    anw New Member

    Odd problem: when I'm working with putty from my home office to a server I have on the public internet, after a short period of time the terminal interface on the client quits responding. Here is some parameterization:

    1. I've tried all sorts of keep-alive options on the client and the server. This just started happening within the last week; prior to that, I had tcp keep-alives in the server "on" and set to 900 seconds in the putty client. Since then, I've tried all sorts of various options and no change.

    2. This does not happen when logging in to the same server from work. The session will remain stable for days regardless of whether I type into it or not.

    3. I set debugging to DEBUG3 on the server and wrote a simple bash script that will print the time to the putty screen, wait 2 seconds, then print the time again, so I could narrow down exactly when it occurred and follow what was happening in the logs. The client log has nothing except the time being received. The server has very verbose output, but nothing I can see that looks unusual. For a window that printed the last "date" output at 13:50:03, here is the server output log that brackets that time (note the gap; evidently sshd saw nothing happen):
    putty doesn't seem to know the connection has dropped. If I let it go for hours, putty will eventually come back and say the connection has timed out, but this is way after it has quit responding.
  2. falko

    falko Super Moderator ISPConfig Developer

    Set it to 30 seconds and try again.
  3. anw

    anw New Member

    I'll try it as soon as I get back to my office this afternoon.

  4. anw

    anw New Member

    I tried 30, no change. I also temporarily shut down ftp on the server, and tried running sshd on port 21, still no change. I rebooted my (home) router and rooted through all the networking stuff (logs, displays, netstat, etc.). I can't see anything wrong, but my home router seems to know when the connection gets torn down, as it removes it from its list of connections. Neither server seems to know the connection is gone.
  5. id10t

    id10t Member

    Do you have a decent isp? They may be seeing long encrypted sessions and killing them trying to fight piracy, etc. Or it may be your home router doing something...
  6. anw

    anw New Member

    I'm going to call my ISP today. I don't think its my router; its been working fine for two or three years, and I rebooted my router as well.
  7. anw

    anw New Member

    Evidently my Linksys home router went bad. I plugged my cable modem directly into a laptop and everything worked; move back to the main access switch, everything worked; moved to the main router (I also had a wireless router plugged in for my home network), and I got the intermittent problem. So I just took my wired router out of the network (my wireless router has a built-in 4-port switch, which is adequate since I only have a couple of circuits going to other main switches), and all seems good.

    The router must have a momentary-glitch problem, because I could get on the internet fine and didn't seem to have any other problems, so what I don't understand is why, if I have putty set up to not do keepalives, it would drop the circuit. I don't see why putty would even know if the router momentarily glitched.

Share This Page