Is it possible to launch an X11 application and have it use an X11 server on the other side of a bastion host? Specifically, here's my setup:
my laptop ------------- bastion -------------- remote host
I have putty installed on my laptop. The bastion is rhel 6.5 and the remote host is CentOS 6.3. Also, putty is installed on the bastion. I have an X Server running on my laptop.
Using xclock as a test app, what works fine are these two scenarios:
.. in each case I needed to set up X11 forwarding, and that is working fine.
However, what I'm really trying to get is xclock from the remote host to display all the way back on my laptop's X Server:
My tools on both the laptop and bastion are either putty or ssh.
I tried, for example, running this from my laptop:
I thought maybe I need an ssh tunnel on the bastion, but the X11 packets seem to be coming on the ssh port (22), so I wasn't exactly sure how to set up the tunnel. I tried source port 22 destination laptop:6000 (and 6010) to no avail.
This is a bit different than standard X11 forwarding, you'd need to figure out exactly what port numbers you need and put them under 'tunnels'. I think X11 is 6000 but that can vary.
Under 'source port' you'd put 6000, I think. And under destination you'd put remotehost:6000. This means, when you logged into bastion, and connected to localhost:6000 on your laptop, the SSH tunnel would connect to remotehost:6000. So localhost:6000 would effectively be connecting to remotehost:6000.
hi,
I'm trying to run a bash script that starts GUI. Though it says application started when I run this bash script doesn't show up any GUI. Here is what I've tried so far and please let me know if I'm missing something with the X11 set up here.
cat /etc/redhat-release
Red Hat Enterprise... (8 Replies)
I communicate with the server via a ssh tunnel, configured via Putty.
Recently, I'm trying to forward the X11 through it, but it doesn't work.
Is there any one work this way?
Searched with google, but didn't find anything.
Thx in adv. (2 Replies)
Hello. I installed a Debian box, and its installed remotely. I need to boot up iceweasel from there to do a quick test.
I log on using:
ssh root@<IP> -X
I have modified the /etc/ssh/sshd_config file, and added the X11Forwarding yes flag
And yet I still get:
Error: cannot open... (10 Replies)
Hi all
I'm having an issue with X11 Forwarding
I have a VM set up on my computer which I usually "ssh -X" to over a home network (192.168.1.*).
Client 192.168.1.100
Server 192.168.1.103
This worked perfectly fine for X11 forwarding.
However I am not at home now (and have no access to... (2 Replies)
Hi Experts,
I am trying to have the SSH tunnel Remote forwarding command in a shell script. I should be able to do 2 tasks, but unable to get that going.
1) I have 3 servers Server 1, Server 2, Server 3.
I have my Database running on Server 1 and my script running on Server 2 which should... (0 Replies)
Hi,
We've been facing a strange issue. Clients use X11 forwarding via SSH on HP server and sometimes the same DISPLAY is assigned to two (maybe more) sessions. As a result, some users can't open their applications, and some have their windows redirected to somebody else.
It looks as if sshd... (1 Reply)
Hi,
I am using Putty, enabled SSH X11 forwarding and entered the X11 display location as "localhost:0". However I encountered the following error:
------------------------------------
# xclock &
2941
# X connection to localhost:10.0 broken (explicit kill or server shutdown).
+ Exit 1... (4 Replies)
I have 2 Debian boxes.
In my ssh.com client and my putty client, I have X11 fowarding turned
on for both boxes.
When I connect one, I can xterm with no problem back to my pc.
On the other, I keep getting:
xterm Xt error: Can't open display:
xterm: DISPLAY is not set
On both... (3 Replies)
Hi,
I have issues with running graphical interfaces on my computer being remotely logged into a network via the -X option of ssh. My .cshrc shows DISPLAY=hostname:0 and I think there should be a different number instead of the 0. I changed the ssh_config file already to 'X11 forwarding yes', which... (0 Replies)