Solved

x11 forwarding ssh to ssh gateway then onto client via internet

Posted on 2006-11-08
4
480 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
ID: 17908389
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
ID: 17920663
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
ID: 17920689
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
ID: 17923437
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

Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Outlook keeps opened file locked 2 55
Cisco IOS from ipbase to ipservices 10 78
Unifi AP 4 51
Classlful vs Classless subneting 18 62
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

910 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

23 Experts available now in Live!

Get 1:1 Help Now