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?
Thanks.
Moderator's Comments:
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.
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.
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):
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
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 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)
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)
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)
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)
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)
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)
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)
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)
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)