Windows->RHEL->RHEL X11 Forwarding?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Windows->RHEL->RHEL X11 Forwarding?
# 1  
Old 10-14-2015
Display Windows->RHEL->RHEL X11 Forwarding?

I know this question might have been asked a lot but couldn't find anything that worked. From a windows machine 'A' I can only SSH into Linux server 'B' from where I can SSH into another Linux server 'C'. I need to be able to run GUI interfaces on server C which run on my Windows machine. I have tried the X11 forwarding with a new tunnel but for some reason doesn't seem to work. I know I am doing something wrong. Any ideas?
Code:
  From A: putty.exe -ssh -L [2222]:C:22 B
  From A: putty.exe -ssh -X -p [2222] localhost


Thanks.
Moderator's Comments:
Mod Comment Please use CODE tags when displaying sample code, sample input, and sample output.

Last edited by Don Cragun; 10-14-2015 at 09:29 PM.. Reason: Add CODE tags.
# 2  
Old 10-15-2015
Hi Prasan,

Install VNC server on server 'C' and install VNC client on server 'B'.
Then from Server 'B' command prompt trigger command: vncserver, it will launch GUI of Server 'C'.
You can find lot of website for installing and configuring VNC server.

Thanks
LND
# 3  
Old 10-15-2015
Quote:
Originally Posted by hr.prasan
From a windows machine 'A' I can only SSH into Linux server 'B' from where I can SSH into another Linux server 'C'. I need to be able to run GUI interfaces on server C which run on my Windows machine.
What you need is a (running) X-Server on your Windows machine. There are several, commercial ones and free ones. The one i use (if i have to work on a Windows system at all) is "OpenText Exceed", which is a commercial product. You might want to try "Xming", "MobaXTerm" and similar freely available products for a first test, though.

X-Windows works like this:

There are "X-Servers": an X-Server is a program which manages one (or more) graphical displays. At the same time it offers the display to be used over the network. Think of it like a driver for your graphics cards with a network interface. Notice that the "X-Server" usually runs at your local system (the "client").

Then there are "X-Clients": programs, which use the services an X-Server offers to create their interface. One example for such an X-Client would bei "Firefox", another one "Xterm". These programs usually run on the remote system (the "server").

So, basically you do the following: you connect to some remote system, by whatever you wish: putty, other ssh-clients, telnet or something else. Then you start a program at the remote system. If this program is an X-Client it will try to use your (already running) local X-Server to display its GUI.

Some obstacles in the way: first, the X-Client has to know where an X-Server runs and which one to use (there might be several ones on the network). This is done by creating a variable called DISPLAY before starting the X-Client. It points to your system(s display):

Code:
# export DISPLAY=your.local.hostname.com:0.0
# xterm &

Xterm will now start and display its Window on your system. Instead of a hostname you could also use the IP-address. The ":0.0" at the end means "Screen 0 of Display 0", don't care for that if you only have one screen. X-Servers can utilize several displays at once with several screens each. Then you could tell here which one to use, ":0.0" is the first screen and will probably suffice until you create a truly complex scenario.

Another thing is to tell The X-Server that the remote host (and all the X-Clients running there) are indeed entitled to use your X-Server. You can tune this later, for a first test just use the command

Code:
xhost +

To allow every host to use your X-Server. Note that this is a configuration of your server, not the client. You X-Server should have either this command or some graphical equivalent called "access control" or similar.

Lastly, the communication has to work: X-Server and X-Client use a special protocol to communicate (called "X-Protocol"), which uses port 6000(-6063). Make sure these ports are open between server and client (udp and tcp).

I hope this helps.

bakunin

Last edited by bakunin; 10-15-2015 at 09:21 AM..
# 4  
Old 10-15-2015
Thanks guys for your inputs and clarifications.

Think we were able to use a more straightforward approach which seems to work fine.

Windows Server - putty.exe -ssh -X LinuxA
LinuxA - ssh -X LinuxB
LinuxB - xclock.

And it displays the xclock in my Windows Server.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

RHEL Linux process activity monitoring tool from windows 7 system

I have 2 RHEL 5.9 system where customized applications are running. These 2 servers are with in a network (LAN) with each other.One application in say Server 1 can talk to another application in server 2 and vice versa. The applications are exchanging data among each other. Recently I am... (0 Replies)
Discussion started by: Anjan Ganguly
0 Replies

2. Red Hat

Is it possible to install RHEL 7 on top of RHEL 6?

Hi We have RHEL 6.7 on an HP physical server and want to install RHEL 7 (not upgrade) on top of it by means of virtualization. Is it possible to install/configure RHEV/KVM virtualization on base RHEL 6.7 OS instance and then install RHEL 7 as a VM guest on it? If yes, could you please guide me... (1 Reply)
Discussion started by: magnus29
1 Replies

3. Red Hat

RHEL 6, Spacewalk 2.3 unable to download RHEL 5 repo data

Hello all, I am having a bit of an issue on my Spacewalk installation. Some amplifying information is that it is Spacewalk 2.3 installed on a RHEL 6 machine and I am attempting to install/update a RHEL 5 channel/repository. I am fairly new to Spacewalk so I am still learning but this is what I... (3 Replies)
Discussion started by: jstone4646
3 Replies

4. Red Hat

Installing RHEL over Windows 7 or 8

Hi, Sorry if this is an incorrect place for this question but I haven't been able to find any answers by searching the forums or on google. I am in the market for a new HP Z420 workstation and HP wants a lot more money for one with the HP Linux Installer kit vs. the exact same configuration in... (2 Replies)
Discussion started by: rhopson
2 Replies

5. Red Hat

Error throwing while installing vsftpd package in rhel 6. using rhel 6 dvd.

Hi all, Im studying rhcsa as of now, so yum installation and dependencies are messing me to not workit out. i have dual os, win 7 & rhel 6. i have tried this installation of vsftpd package with rhel 6 dvd in VM rhel 6 in win 7 as well as host rhel 6.still the same issue. below error... (6 Replies)
Discussion started by: redhatlbug
6 Replies

6. Red Hat

Xming Vs ssh connect to RHEL server from Windows machine

I am able to connect a RHEL server from my Windows machine using Putty (via ssh). My question is what is the advantage of using Xming instead of Putty? Is it that Xming would enable a graphical connect from the Windows machine to RHEL server? I hope my question is clear that what is the... (9 Replies)
Discussion started by: RHCE
9 Replies

7. Red Hat

Graphically connect RHEL server from Windows 7 Professional

I want to connect RHEL server from my windows 7 Professional machine graphically. I logged into 1 RHEL server with IP, 10.101.17.80 using Putty from my Windows 7 professional machine. Now from this server, 10.101.17.80, I want to connect to another RHEL server 10.101.17.79. I used, ssh -X... (1 Reply)
Discussion started by: RHCE
1 Replies

8. Red Hat

Does RHEL 5 provide a command to collect RHEL system log in single compress file?

Hi, I heard a command that can collect all RHEL 5 log in a single compress file before I forget. Does any body know...What the command is ? Thanks. (4 Replies)
Discussion started by: nnnnnnine
4 Replies

9. Red Hat

cannot ssh (use NFS) on RHEL box, but can mount external & ssh out of RHEL box

Ok, Im trying to get NFS working on my RHEL 5 box, apparently i can use the box as a client, but not as a server. If it helps i cant ssh into the box (server), but as a client ssh works fine. Ive configured server: /etc/hosts.allow: all : all all :all@all setup my /etc/exports file... (4 Replies)
Discussion started by: drs.grid
4 Replies

10. Red Hat

Difference between RHEL 3 AND RHEL 4

Anybody, let me know major differences between RHEL 3 & 4 . (2 Replies)
Discussion started by: sakthi_13
2 Replies
Login or Register to Ask a Question