weird ssh or X problem

From: David Minor (minor_at_fusion.gat.com)
Date: 07/21/05

  • Next message: Ed Wilts: "Re: rpm -Fvh glibc* hanging"
    To: redhat-list@redhat.com
    Date: Wed, 20 Jul 2005 15:07:45 -0700
    
    

    My apologies if this has been addressed previously - I didn't see
    anything for it in the archives.

    We're in the process of upgrading to RedHat Enterprise version 4 and
    are seeing a strange ssh or X problem. We're using a vanilla install.
    The only change we've made is two variables in sshd_config - we've
    got the following variables uncommented: X11UseLocalhost no
    X11Forwarding yes.

    Here's what happens:

    1) User ssh's into remote machine (machine1.company.com) which is
    running the new version. Tries to run an X process, say xclock. User
    is told:

    Error: Can't open display: machine.company.com:10.0

    User keeps this session open.

    2) User opens a second ssh session to the same remote machine. Runs
    xclock - it works. On this second session the client has been handed
    the same display (machine1.company.com:10.0) as the first session.

    3) User goes back to first session. Now xclock works in that session
    also.

    4) If user logs out of second session, X stops working on first session.

    We see this behavior regardless of the ssh client used (we've tested
    Linux, OSX, HP-UX). It also doesn't matter if we use X forwarding on
    the client (via -X or -Y) either.

    Note that if a user doesn't have concurrent ssh sessions open, X
    never works.

    Further looking at it indicates that this *might* be an X problem?

    1) First connection to the machine (using ssh again). It's handed
    display 10. X does not work. Telnetting to localhost 6010 gives a
    "connection refused" message.

    2) Second connection to the machine (again using ssh). Handed the
    same display. X works. Telnetting to localhost 6010 now works. So
    there's something going on with the way ports are being opened.

    3) Also, the machine simply isn't listening on port 6000. Compare this:

    On the machine with the problem:
    machine1.domain.com: netstat -an | grep 6000
    machine1.domain.com: [nothing]

    a different machine running RHEL version 3:

    machine2.domain.com: netstat -an | grep 6000
    tcp 0 0 0.0.0.0:6000
    0.0.0.0:* LISTEN

    Anyone else see this problem or have any suggestions??

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Ed Wilts: "Re: rpm -Fvh glibc* hanging"

    Relevant Pages

    • Re: [kde-linux] Sessions names
      ... ssh 192.168.2.80??? ... You can write a wrapper script that would start ssh to some ip and rename the ... konsole session dynamically. ... dcop call to konsole you need to know the pid of konsole. ...
      (KDE)
    • RE: unexplained pausing/freezing of SSH Terminal Sessions ?
      ... Do you use expect to initiate your SSH connections? ... i'm having an SSH Terminal Session "issue". ... These machines define an internal/private ...
      (SSH)
    • SSH connection thru corporate firewall to home sshd on Port 80
      ... I have a FreeBSD server running sshd listening on port 80 at home. ... I can successfully establish a ssh session from a Winnt/putty:80 box the ... When I take the same Winnt machine behind a corporate firewall which passes ...
      (comp.security.ssh)
    • Sun_SSH_1.0
      ... I have a problem with Sun's SSH. ... or one SUN_SSH_1.0 session talk to an OpenSSH session. ... This e-mail and any attachments are confidential and may contain legally ...
      (SunManagers)
    • Re: Is there a way to speed up and resume a SSH X forwarding session from a disconnection?
      ... there were to be a disconnection, is it possible to resume the SSH X ... Or do I have to make a new session ... you set DISPLAY to that pseudo-display, and all X apps are directed ... impossible to switch X clients from one display to another otherwise. ...
      (comp.os.linux.x)