Koozali.org: home of the SME Server

X11 Forwarding refused

domh

X11 Forwarding refused
« on: July 26, 2007, 05:55:53 AM »
Hi there,

Up until 7.2 I have been successfully able to open X11 forwarding via /etc/SSH or through the regular expand-template command.  I have tried all of my usual tricks to get this to work and alas cannot.

Can someone please tell me how to get X11 forwarding working on 7.2.  I am using Arkeia with X-win32 and X11 forwarding switched on in Putty.

Offline Marco Hess

  • *
  • 149
  • +0/-0
    • http://www.through-ip.com
Re: X11 Forwarding refused
« Reply #1 on: August 23, 2007, 01:39:12 AM »
Can someone please tell me how to get X11 forwarding working on 7.2.  I am using Arkeia with X-win32 and X11 forwarding switched on in Putty.

I did this just the other day. I installed two custom template fragments and found I had to install the xauth package. I confirmed the following commands to work on a test 7.2 SME machine as root:

Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/ssh/sshd_config/
cd       /etc/e-smith/templates-custom/etc/ssh/sshd_config/

echo X11Forwarding yes    > 50X11Forwarding
echo X11UseLocalhost yes  > 50X11UseLocalhost

expand-template /etc/ssh/sshd_config

yum install xauth

signal-event post-upgrade; signal-event reboot

Then when you enable X11 forwarding in Putty, set host to localhost:0.

I also put this little howto in the Wiki at http://wiki.contribs.org/X11_Forwarding_on_SME

Enjoy!

Marco
« Last Edit: August 23, 2007, 02:18:15 AM by thf »
Adelaide - Australia

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: X11 Forwarding refused
« Reply #2 on: August 23, 2007, 07:40:16 AM »
I also put this little howto in the Wiki at http://wiki.contribs.org/X11_Forwarding_on_SME
Did you receive any error messages or did you do something special with the page as I am able to view it, but it does not turn up in the revision history, neither there is a message that the page is created, nor can I edit the page? When I want to view the page after opening the edit tab, using the Article tab I get an edit box meaning the page does not exist?

Reported as bug 3327.
« Last Edit: August 23, 2007, 08:23:50 AM by cactus »
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: X11 Forwarding refused
« Reply #3 on: August 23, 2007, 08:24:57 AM »
I also put this little howto in the Wiki at http://wiki.contribs.org/X11_Forwarding_on_SME
Due to database errors the content of your page has been lost, would you be so kind to recreate it?

TIA
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)