The players:
- my home computer, running Linux with an X server running. (Call it HOME.)
- a remote site, to which I can connect over the internet using a VPN. (SITE)
- a Linux computer at the remote site, to which I can connect with
ssh -Xand nicely have X clients displaying on my local server. (MIDDLE) - a very old Irix machine (an Onyx) at the remote site, which has no SSH server (therefore I can't
ssh -Xto it), only ansshclient. (ONYX)
Purpose
I need to run an X11 application on the ONYX machine, and see the GUI on HOME. I think I stumble upon xauth issues. Note that I have tried the obvious: I set DISPLAY to $ip_address_of_HOME_in_the_SITE_VPN:0, but the VPN server does not forward connection attempts to its clients, probably for security reasons.
So far
The current situation is:
- ☑ HOME connects to SITE
- ☑ A vncserver starts on MIDDLE:7
- ☑ vncviewer on HOME connects to vncserver on MIDDLE
- ☑ ONYX starts a forwarding ssh session to MIDDLE:
ssh -TfN -L 6007:127.0.0.1:6007 MIDDLE - ☒
DISPLAY=localhost:7 xclienton ONYX fails with
Xlib: connection to "127.0.0.1:7.0" refused by server
I do know that the forwarding (6007:127.0.0.1:6007) succeeds.
A previous attempt was:
- ☑ HOME connects to SITE
- ☑ HOME connects to MIDDLE:
ssh -X MIDDLE(xclock displays on HOME, DISPLAY is 127.0.0.1:10) - ☑ ONYX starts an SSH tunnel to MIDDLE:
ssh -TfN -L 6010:127.0.0.1:6010 MIDDLE - ☒
DISPLAY=127.0.0.1:10 xclientfails with
X connection to 127.0.0.1:10.0 broken (explicit kill or server shutdown).
while an error pops up in the MIDDLE session:
X11 connection rejected because of wrong authentication.
Despair
How can I achieve my purpose?
xauthon ONYX, thengenerate 127.0.0.1:10 . trusted(in the second case above), but I have the same dual error (one on ONYX, one on MIDDLE). – tzot May 7 '10 at 14:56