ssh and ForwardX11
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.
Signature · 8 lines
Paul Furness Systems Manager Visual Information Lab Mitsubsihi Electric ITE BV Guildford, UK Steepness is an illusion caused by flat things leaning over.
Hi,
Try putting the following in your sshd_config
X11UseLocalhost no
I think that *may* do the trick.
HTH,
Chris
Quoted 33 lines · --- Paul Furness
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 fromA->B, then ssh fromB->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?
Quoted 23 lines
Oh, the
sshd_configandaah_configfiles 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.
Signature · 14 lines
Paul Furness Systems Manager Visual Information Lab Mitsubsihi Electric ITE BV Guildford, UK Steepness is an illusion caused by flat things leaning over. - To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com
Quoted 4 lines · Paul Furness
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?
Running "strings /usr/sbin/sshd | fgrep X11" displays (amongst other things):
/usr/X11R6/bin/xauth
My guess is that B needs to at least have xauth installed in order for sshd to manage the ~/.Xauthority file.
Signature · 1 line
Glynn Clements <[email protected]>