[CentOS] C6: ssh X-forwarding does not work

Rainer Traut tr.ml at gmx.de
Wed Oct 26 14:46:21 UTC 2011


Am 26.10.2011 15:18, schrieb John Hodrien:
> On Wed, 26 Oct 2011, Lorenzo Martínez Rodríguez wrote:
>
>> Hi,
>>
>> I have a working configuration with CentOS 6. Can you try to set next
>> lines in /etc/ssh/sshd_config and restart SSH server please?
>>
>> #X11Forwarding no
>> X11Forwarding yes
>> #X11DisplayOffset 10
>> X11UseLocalhost yes
>>
>>
>> In fact I do not have xorg-x11-auth rpm installed:
>>
>> [root at Carmen ~]# rpm -qa|grep -i xorg-x11-auth
>> [root at Carmen ~]#
>>
>> and it works...
>
> He meant xorg-x11-xauth and I'm 99% certain you *need* that installed on
> the
> target machine for ssh forwarding to work.

Yes, you need this rpm on the target machine.

Ok, solved.
I set debugging of sshd up and see this message:
error: Failed to allocate internet-domain X11 display socket.

Google shows this:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/136947

And I have this in systl.conf:

# Disable ipv6
net.ipv6.conf.all.disable_ipv6 = 1

I added
AddressFamily inet
to sshd_config and now it works.

Thx guys,
Rainer



More information about the CentOS mailing list