Re: Another ssh problem - it looks up after a couple of minutes.

From: Dave (nospam_at_nowhere.com)
Date: 08/28/05

  • Next message: Dave: "Re: Another ssh problem - it locks up after a couple of minutes."
    Date: Sun, 28 Aug 2005 21:33:44 +0100
    
    

    Oscar del Rio wrote:
    > Dave wrote:
    >
    >> Whenever I connect to another machine that has ssh running (including
    >> other Suns with other non-OpenSSH based servers), the connection locks
    >> up after a minute or two if not used. If its used, it keeps working.
    >
    >
    > Are you running IPFilter firewall? If so, check that "keep alive"
    > options are set up properly, incoming and outgoing.

    No, I have a hardware one. None of the machine on my LAN have a
    firewall, although I have in the past run ipfilter.

    > I have a similar problem but in my case it is definetly the ADSL modem
    > that breaks the connection after about 5 minutes of inactivity.
    > The first I did was to run a script printing the date every few seconds
    > or prstat or top running whenever I was idle, but it's a pain.

    If I have two terminals open (i.e. I ssh twice to the same machine) and
    use one, but let the other one remain unused, the unused one locks up,
    but the one I use keeps going OK.

    I have just done a test with

    local % ssh -X remote
    password: *****

    remote % /usr/bin/dtterm &
    remote % while (1)
             date
             sleep 40
             end

    and found the dtterm keeps OK whether I use it or not.

    > Then I found the following options on the Solaris 10 sshd server (does
    > not seem to work on Solaris 9)

    I have a static IP, and the web server never hangs, which I would expect
    to happen if its a problem with the modem.

    > In sshd_config:
    >
    > KeepAlive yes
    > ClientAliveInterval 250
    >
    > The interval of 250 is just enough to keep my ssh connections alive.

    I don't fancy upgrading to 10. If I knew it would fix it, I would, but
    several of my machines are SPARC 20's, and not capable of running 10
    anyway. And machines at work run from 2.6 to 8 (or possibly 9, I am not
    100% sure). None run 10.


  • Next message: Dave: "Re: Another ssh problem - it locks up after a couple of minutes."

    Relevant Pages