Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I read through some of the posts and haven't been able to fix the "can't open display problem. Running a re-installed rhel5.2 linux version. Can't open a display when 'ssh -X <sgi machine>' or 'ssh -Y <sgi machine>'
'xhost +' enabled on rhel5.2, DISPLAY set on client, /etc/ssh/ssh_config has X11TrustedForwarding set to 'yes'. Not sure what else to try.
Just wondering, are both these machines red hat boxes? It sounds like you might have the config files correct, but yes please provide a little bit more information on the exact problem and the OSs involved.
Some clarification: I have a linux box on my desk running RHEL 5.2. I 'ssh -Y <SGI box ip address>'. So on the linux box I have 'xhost +' enabled. I run a secure shell to an SGI box. I am able to connect and immediately set my display using the tch, 'setenv DISPLAY <ip_address of my linux box:0>' I get the can't open display message. This is some sort of configuration or xauth issue. I already set 'X11Forwarding' to yes and 'X11TrustedForwarding' to yes in /etc/ssh/ssh_config' to yes even though I don't have to when using 'ssh -Y' from the command line. I copied the xauth from my linux box to the remote SGI box using the command 'xauth extract - $DISPLAY | rsh <remote machine> xauth merge -'. I still get the can't open display for just trying to open an xterm. This used to work. RHEL 5.2 was re-installed on my linux box after faulty hard drive removed and a new one was installed. There must be something I need to set up on the SGI remote side, since I can open an xterm when connecting to another linux box running RHEL 5.2.
From what i have worked the configuration steps are:
On the remote box:
- Enable X11Forwarding on /etc/ssh/sshd_config
- Be sure to restart the sshd daemon to the new configuration is applied.
- The firewall on the SGI box has to allow connections via local interface
(haven't seen an SGI box en years so i don't remember the interface names)
so check your firewall rules also.
- The box needs an xauth command in the path so the ssh service can
negotiate the X authentication.
On the client, enable X11 on the /etc/ssh/ssh_config (not sshd_config)
o start the connection with
ssh -X user@remotebox
When logged, the DISPLAY variable on the remote machine should be
automatically set to localhost:10.0 (could be 11:0,12.0 etc. if other
people is logged), there is no need to set the DISPLAY variable or
use the xhost command, when using ssh+x11 forwarding,
all traffic is sent through the ssh tunnel.
In order to debug, you have to check:
- Locally, from the same terminal you should be able to
start a new X app (xeyes, xterm etc.), you local
DISPLAY variable should be ok if you can do that.
- After login to the remote box the DISPLAY variable
should be localhost:10.0 or similar, that confirms that
sshd is setting up the X11 forwarding.
- If the DISPLAY variable is set correctly but you still
can't start applications check your firewall.