From: Paul Furness Subject: ssh and ForwardX11 Date: 12 Mar 2003 17:22:03 +0000 Sender: linux-admin-owner@vger.kernel.org Message-ID: <1047489723.20278.117.camel@Zebra.vil.ite.mee.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-admin@vger.kernel.org Hi. I'm having a problem getting sshd to forward X11 traffic. I have 3 boxes, A, B and C. A is outside the firewall, B is in the DMZ and C is inside the firewall. I want to ssh from A->B, then ssh from B->C. Then I want to run an X app (say xterm) on C, and get it to display on A. Given that the firewall cannot be changed, how do I get B to forward X? I can get this to work fine on 3 machines on the LAN (no firewall involved), but it won't work through the firewall. The firewall allows ssh traffic only, but it will allow it either way between outside and DMZ, and between DMZ and inside. Not direct from outside to inside, though. Ssh works fine. The problem is that after connecting to B, $DISPLAY is empty. I have, of course, turned on X11 forwarding for all the machines, both for client and server programs. (And yes, I have restarted sshd after changing the settings). Is there something in sshd / ssh that checks for X on the machine, and only forwards it if X is installed locally? Can I force it to forward X anyway (incidentally, "ssh -X" doesn't work)? Is it affected by the fact that there is no DNS available to the machine in the DMZ? Oh, the sshd_config and aah_config files are identical on all the machines (they were all copied of the same machine, which is working with X forwarding fine inside the LAN.) Can anyone give me any pointers? (No 'C' jokes, please... :) P. -- Paul Furness Systems Manager Visual Information Lab Mitsubsihi Electric ITE BV Guildford, UK Steepness is an illusion caused by flat things leaning over.