Solved

x11 forwarding ssh to ssh gateway then onto client via internet

Posted on 2006-11-08
4
481 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 62

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
forward schedule of change 1 52
Getting locked out and can't access Cisco via the web 18 66
VPS for routing recomendations 3 50
Bandwidth issues? 5 30
Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
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 …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

803 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