Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Installation - Getting started with Red Hat Linux
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
weird ssh or X problem

weird ssh or X problem

2005-07-20       - By David Minor

 Back
Reply:     1     2  

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@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

Earn $52 per hosting referral at Lunarpages.