Open an X application going through many hoops (SSH, vpn etc)

Posted by ??O????? on Super User See other posts from Super User or by ??O?????
Published on 2010-05-07T14:48:06Z Indexed on 2010/05/07 15:00 UTC
Read the original article Hit count: 218

Filed under:
|
|

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 -X and 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 -X to it), only an ssh client. (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.

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 xclient on 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 xclient fails 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?

© Super User or respective owner

Related posts about x11-forwarding

  • How to use X11 forwarding with putty

    as seen on Super User - Search for 'Super User'
    I have a VM with RHEL 5 without an X server. My host has Windows 7. I need to connect to the VM and redirect the X11 output of the commands to my host. I know that if my host were a GNU/Linux machine it would be as easy as ssh -X . I'm ussing PuTTy to connect by SSH to the VM, I tried enabling… >>> More

  • fast X11 forwarding

    as seen on Super User - Search for 'Super User'
    Hi, I am using ssh -X to display GUI apps locally. Is there a better way to speedup this processes - something similar what NoMachine Nx server / client does? Thanks, Mariusz. >>> More

  • failed to enable x11 forwarding

    as seen on Super User - Search for 'Super User'
    I am trying to enable X11 forwarding on my server which is running on FreeBSD 7.1. I have a putty installed in my windows in which i have enabled X11 forwarding by checking on Enable X11 forwarding and specifying following parameter X display location localhost:0 after that i run… >>> More

  • failed to enable x11 forwarding

    as seen on Super User - Search for 'Super User'
    I am trying to enable X11 forwarding on my server which is running on FreeBSD 7.1. I have a putty installed in my windows in which i have enabled X11 forwarding by checking on Enable X11 forwarding and specifying following parameter X display location localhost:0 after that i run… >>> More

  • ssh xauth error Mac OS 10.6.3

    as seen on Super User - Search for 'Super User'
    Whenever I ssh with X11 forwarding to a remote box from my macbook I get the following error after a few seconds pause: Warning: untrusted X11 forwarding setup failed: xauth key data not generated Warning: No xauth data; using fake authentication data for X11 forwarding. Any ideas on how to fix… >>> More

Related posts about vpn