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-24       - By Lew Bloch

 Back
Reply:     1     2  

>
>
>X11UseLocalhost no
>X11Forwarding yes.
>

Setting the X display to the user node defeats the whole purpose of
using ssh since your displaylist instructions will be sent unencrypted.

Leave X11UseLocalhost on rather than turning it off.

The user should ssh in with the -Y option or the equivalent in their
ssh_config.  Do not explicitly set DISPLAY yourself.  This gives the
session a DISPLAY=localhost:10.0 that is forwarded securely through the
ssh pipe.

If I understand your example correctly, you're trying to do this:

machine  --- ssh ---> machine1
            <---  DISPLAY='machine:10.0'

X displays directly to 'machine' unencrypted, not through ssh - INSECURE.

What you want is:

machine <--- ssh --->  machine1  DISPLAY='localhost:10.0'
sends X display through localhost, forwarded to user via ssh, encrypted
- SECURE.

No idea why the anomaly with a second session running.  It will go away
when you're correctly set up.

>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
>  
>
>On this second session the client has been handed  
>the same display (machine1.company.com:10.0) as the first session.
>
Seems like you are talking two different displays here, one on "machine"
and one on "machine1".  If they are given 'machine1' as the X server
then X forwarding is probably taking care of the rest.  Your problem
comes when 'machine' (the user node) is the X server, correct?  It's a
red herring, since you should use X forwarding via the ssh connection
without explicitly setting DISPLAY anyway.


-Lew

--
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.