Solved

x11 forwarding ssh to ssh gateway then onto client via internet

Posted on 2006-11-08
4
478 Views
Last Modified: 2013-12-23
Hi All,


I have an internal network, which i connect to the gateway machine via ssh, and can send X11 windows back via the internet to my remote machine, but  I have problems sending a window from one of the other machines on via the gateway, I have enable X11 forwarding on the internal machines.

its one of these silly problems, but i need to get it fixed asap
thanks
mit

0
Comment
Question by:radical_mit
  • 2
4 Comments
 
LVL 43

Expert Comment

by:ravenpl
Comment Utility
so You saying, You are logging to remote with: ssh -X username@remote.server.tld
After You logged in, You running some X application like: xterm
but it fails. What's the error message?
0
 

Author Comment

by:radical_mit
Comment Utility
yes,
want to send a xterm from a different machine via the gateway. i do not know what to set the DISPLAY variable to?
on the gateway is DISPLAY=remote.server.tld:10.0
then i xterm & and at my pc I get a window.
thanks
mit
0
 
LVL 43

Accepted Solution

by:
ravenpl earned 400 total points
Comment Utility
Did You use: ssh -X username@remote.server.tld
it should set X forwarding automatically, and DISPLAY should look like
echo $DISPLAY
localhost:11.0
Yes, it's forwarded throught the ssh connection itself, therefore is not blocked by any firewall.
0
 
LVL 61

Expert Comment

by:gheist
Comment Utility
you have to run ssh -X -v, and look for X11 forwarding failures or rejects. Sometimes it may set up X11 parameters without SSH tunnel when denied by server or client configuration.

"xdpyinfo" on server command line over SSH will tell if X11 works without even giving a window
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now