WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: X11 Forwarding.  (Read 11940 times)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: X11 Forwarding.
« Reply #15 on: November 18, 2013, 03:23:23 AM »
Yep, as Gerald said, starting a WM is no different from starting an app. Just type "flwm" or whatever your desktop is.

Obviously your current X screen shouldn't have a WM running.
The only barriers that can stop you are the ones you create yourself.

Offline ferite

  • Newbie
  • *
  • Posts: 22
Re: X11 Forwarding.
« Reply #16 on: November 18, 2013, 11:18:55 AM »
It works for me. Install openssh, specify "x11forwarding yes" and "xauthlocation /usr/bin/xauth", I can forward X apps from a TinyCore install with no other extensions installed.

Study your logs from both your client and server.  To save the sshd logs enable syslog with the syslog bootcode, and edit the sshd_config Loglevel config entry.

Hi Curaga. I found  "x11forwarding" on /usr/local/etc/ssh/sshd_config. When should I set xauthlocation?. I added this setting to sshd_config, but seems to take no effect.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: X11 Forwarding.
« Reply #17 on: November 18, 2013, 11:32:28 AM »
In the same file, as you did. It's not commented there like many other rarely used settings.
The only barriers that can stop you are the ones you create yourself.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: X11 Forwarding.
« Reply #18 on: November 18, 2013, 12:02:14 PM »
The only line you need to change in /usr/local/etc/ssh/sshd_config  is
#X11Forwarding no
to
X11Forwarding yes

Then run '/usr/local/etc/init.d/openssh restart'

Offline Lee

  • Hero Member
  • *****
  • Posts: 645
    • My Core wiki user page
Re: X11 Forwarding.
« Reply #19 on: November 18, 2013, 05:55:46 PM »
I changed
    #X11Forwarding no
to
    X11Forwarding yes

and restarted the openssh server and didn't have any luck connecting to it with either PuTTY or openssh on Cygwin from my Windows 7 box.

I had a feeling there might be something lacking or mis-configured in my ssh clients so I did a web search for "X server for windows" and found a reference and link on stackoverflow.com to Mobatek's "MobaXterm 6.6".  I grabbed the free (GPL) version of it to try out.  It worked like a charm, verifying that in fact my sshd config is correct and my other Windows-side ssh programs are in some way not correct.

It is very strange to see my remote linux apps seeming to share a desktop with local Windows apps - and wbar looks kind of stupid in the bottom center, spanning the gap between two monnitors.    :)

I've been pondering the whole remote GUI thing off and on for a while and I hank you experts for making clear how to go about it.

32 bit core4.7.7, Xprogs, Xorg-7.6, wbar, jwm  |  - Testing -
PPR, data persistence through filetool.sh          |  32 bit core 8.0 alpha 1
USB Flash drive, one partition, ext2, grub4dos  | Otherwise similar

Offline ferite

  • Newbie
  • *
  • Posts: 22
Re: X11 Forwarding.
« Reply #20 on: November 22, 2013, 07:32:51 PM »
Thanks to all for your help. Finally I could make it work. My misstake, I was exporting the IP of the Host machine as Dsiplay, not client IP where the X server actually runs. By the way, anyone know how can be omited the exportation of the Display?.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: X11 Forwarding.
« Reply #21 on: November 22, 2013, 09:44:08 PM »
ssh -X automatically sets the DISPLAY.  You should not be changing it.

Offline denis76

  • Newbie
  • *
  • Posts: 1
Re: X11 Forwarding.
« Reply #22 on: February 08, 2015, 08:25:08 AM »
On my remote machine $DISPLAY was empty because "xauthlocation /usr/bin/xauth" was missing in ssh_config.
(TinyCore V6.0)