Topic
3 replies Latest Post - ‏2014-06-09T15:32:23Z by Evan Kedzierski
Evan Kedzierski
Evan Kedzierski
5 Posts
ACCEPTED ANSWER

Pinned topic Ubuntu exporting Display through SSH Tunnel

‏2014-06-05T15:42:34Z |

So i have a running Ubuntu 14.04 Server on PowerKVM and was looking at exporting the display as there is no loacal X server running. The client i am using is Ubuntu 14.04 Desktop

 

so to do this i used the ' ssh -X Uname@serverip' and had checked the Display Var and it had been set but when i tried to run a GUI program it stated X11 connection rejected because of wrong authentication.

 

The steps i took to get to this point where:

Server side

1 disabled UFW

2 installed openssh-server

Client side

1 disabled UFW

2 Ran xhost +

after doing this i ran into the above issue X11 connection rejected because of wrong authentication.

to fix this i Did the following checking if it was working after each step

1 Check disk to make sure the is space df -H

2 Server side: i was the owner of Xauth, ls -l ~/.Xauthority

3 Server side chane owner and permissions

$ chown user:group ~/.Xauthority
$ chmod 0600 ~/.Xauthority

3 Server side: X11 fowarding was set to YES

$ grep X11Forwarding /etc/ssh/sshd_config

4 Client side: in the sshd_config file make sure

Host *
ForwardX11 yes

lines exsist

After these steps i had restarted the ssh connection ' ssh -X Uname@serverip' and checked the Display Var and then ran xclock as a test and it worked

~Evan

 

  • RafaelSene
    RafaelSene
    8 Posts
    ACCEPTED ANSWER

    Re: Ubuntu exporting Display through SSH Tunnel

    ‏2014-06-06T14:01:36Z  in response to Evan Kedzierski

    Hi Evan,  I did the same some time ago, here are my steps:

    • On Ubuntu 14.04 LTS:
      • Install xserver-xorg
    • On my machine:
      • connect using ssh user@host -X -C (C is for compression)
    • Done !

        Note: maybe some change at iptables will be required.

        In my case, to access the IBM SDK  for PowerLinux using a ssh tunnel,  I had to do the following:

    My scenario: remote host running a virtual machine (without a public IP) with Ubuntu 14.04.

    • Dependencies
      • packagekit-gtk3-module
      • libcanberra-gtk-module
    • Tunnel
      • ssh user@host -L 10000:<vm_ip>:22 -g
    • Access:
      • ssh <vm_user>@localhost -p 10000 -X -C
    • Call SDK from command line:
      • /opt/ibm/ibm-sdk-lop/ibm-sdk-lop
    Updated on 2014-06-06T14:51:08Z at 2014-06-06T14:51:08Z by RafaelSene
  • DaveMarquardt
    DaveMarquardt
    2 Posts
    ACCEPTED ANSWER

    Re: Ubuntu exporting Display through SSH Tunnel

    ‏2014-06-09T14:53:53Z  in response to Evan Kedzierski

    HI Evan.  Did you try restarting the ssh daemon on the Power 8 side?

  • Evan Kedzierski
    Evan Kedzierski
    5 Posts
    ACCEPTED ANSWER

    Re: Ubuntu exporting Display through SSH Tunnel

    ‏2014-06-09T15:32:23Z  in response to Evan Kedzierski

    I did try restarting the SSH daemon but it gave the same result, so i did the above and that got the export for me working