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

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

  • Next message: Laurent Blume: "Re: Another ssh problem - it looks up after a couple of minutes."
    Date: Sun, 28 Aug 2005 14:15:24 +0100
    
    

    This is nothing to do with the problem I mentioned before of ssh -X not
    working on Sun related newsgroups - its another problem entirely.

    I have a Sun Ultra 80 running Solaris 9 and ssh version (Sun_SSH_1.0)
    which is based on some variant of OpenSSH.

    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.

    Any ideas what might be causing it to lock up if not used for a couple
    of minutes?

    What I've tried/considered

    1) I can't see any timeouts mentioned, other than

    LoginGraceTime 600

    in the sshd_config file of either machine.

    2) KeepAlive yes
    is set in the /etc/ssh/ssh_config file
    (I'm not sure if that an OpenSSH command or not, but it is available on
    Suns).

    3) I normally use tcsh, but have set up an accounts at both ends with
    /usr/local/bin/bash, and it still locks up.

    4) I do allow direct root logins on one machine (yes I know it has its
    security risks) and it happens if logging in as root (/bin/sh, which is
    not the same as bash on a Sun) or as a normal user with /bin/tcsh

    5) The local host has a firewall in the ADSL modem/router, but the
    timeout has been set >> than the time before the thing locks up.

    In one case, where a machine is on my local subnet, there is no firewall
    on that. In the other case, when I connect to my employers network,
    there is a firewall, but I have no idea how it is configured. But I had
    the problem long before there was any firewall there.

    6) I've had the problem for years, despite shells, versions of the OS,
    versions of SSH, hardware, firewalls all changing over the period. The
    only thing that is common is Sun hardware at both ends.

    7) I normally use vi, but it happens if inside vi, or just as the
    command prompts.

    I've just thought of trying to run an X terminal on the remote machine,
    putting that into the background, and having a loop the prints the date
    every minute. I've not tried that one, but that is at best a poor hack
    even if it does work.

    Any idea??


  • Next message: Laurent Blume: "Re: Another ssh problem - it looks up after a couple of minutes."

    Relevant Pages

    • Another ssh problem - it looks up after a couple of minutes.
      ... This is nothing to do with the problem I mentioned before of ssh -X not ... working on Sun related newsgroups - its another problem entirely. ... and it still locks up. ... In one case, where a machine is on my local subnet, there is no firewall ...
      (comp.unix.solaris)
    • Another ssh problem - it looks up after a couple of minutes.
      ... This is nothing to do with the problem I mentioned before of ssh -X not ... working on Sun related newsgroups - its another problem entirely. ... and it still locks up. ... In one case, where a machine is on my local subnet, there is no firewall ...
      (comp.sys.sun.admin)
    • SUMMARY: Sun IP configuration
      ... hammer" approach by having a range of IP addresses set up in the firewall. ... > Subject: Sun IP configuration ... > Apache posts data it is sent from the primary ip address, ...
      (SunManagers)
    • UPDATE Re: rlogin - security question [expanded to smartcard technology]
      ... explinations of ssh etc. ... 0-13-100092-6) with the words "The Official Sun Microsystems Resource ... place root / users cannot set/change passwords. ... > we are required to allow rlogin access to all by means of .rhosts files. ...
      (SunManagers)
    • SUMMARY: Method for monitoring metastat over multiple machines
      ... with ssh - I had used this as a quick and dirty way to check ... the one I was emailed was from Sun. ... Sun metacheck script which can be set up nicely to ... email from each host doing the check if Solaris is 9 and under. ...
      (SunManagers)