Operating System - Linux
1830862 Members
2562 Online
110017 Solutions
New Discussion

Red Hat 9 Security and X programs from a remote host

 
SOLVED
Go to solution
A. Daniel King_1
Super Advisor

Red Hat 9 Security and X programs from a remote host

Hi, folks.

I'm trying to get an external machine (not local) to display ANY xterm/netscape/gimp/etc. to my Red Hat 9 fresh install.

I've set DISPLAY on the remote system, I've run xhost + remote_hostname on the local system.

All I get is:

Error: Can't open display
Error: Couldn't find per display information

I've tinkered with hosts.allow (even ALL : ALL), to no avail.

Do any of you gurus have some suggestions as to why this does not work?

Thanks in advance.
Command-Line Junkie
5 REPLIES 5
Alexander Chuzhoy
Honored Contributor

Re: Red Hat 9 Security and X programs from a remote host

first of all you need to run
xhost + remote_hostname
from within X sessions terminal

on a second machine from which you wish to connect you should issue the following command
export DISPLAY=ipaddress:0


of course you should insert the Xserver ip address instead of ipaddress


A. Daniel King_1
Super Advisor

Re: Red Hat 9 Security and X programs from a remote host

I've done this with some variation including myip:0.0, myip:1 and others.

Any other ideas?
Command-Line Junkie
Claudio Cilloni
Honored Contributor

Re: Red Hat 9 Security and X programs from a remote host

did you try with simply 'xhost +' without specifing the remote machine? this will enable _any_ machine to connect to the local X server.
Just to check if it is and authorization problem.

Ciao
Claudio
Paulo A G Fessel
Trusted Contributor
Solution

Re: Red Hat 9 Security and X programs from a remote host

Other elegant alternative is change the option "X11Forwarding yes" in /etc/ssh/sshd_config file of OpenSSH. This will enable X11 forwarding from sshd, with the side benefit of having X11 information encrypted and compressed through your ssh connection.

Then, use "ssh -X" to log into your RH9 server; X11 applications will work automagically on your remote X server and you won't have to bother with "xhost" and "export DISPLAY" commands.

Don't forget to assign the corresponding points.

HTH
Paulo Fessel
L'employé propose, le boss dispose.
A. Daniel King_1
Super Advisor

Re: Red Hat 9 Security and X programs from a remote host

I'd rather be encrypted anyway; It works like a charm. Thanks, all!
Command-Line Junkie