Hi!
On Mon, Aug 2, 2010 at 2:16 AM, Adam Tauno Williams
On Sun, 2010-08-01 at 20:18 +0300, HG wrote:
ssh -X 192.168.1.2 from OS X, I get this warning from both the new 11.3 as well as the
Just upgraded my home server to 11.3. Normal mode for it is headless, but I cannot seem to get X to work over ssh. I really don't know where to look. So, here is what I have. I enabled sshd at the install phase (opened the firewall, but currently firewall is disabled altogether). Only change I did for the /etc/ssh/sshd_config was to add "AllowGroups ssh_users" (which includes me). Otherwise I noted that it already has "X11Forwarding yes" I login to the system from OS X or another older openSUSE with old openSUSE: Warning: untrusted X11 forwarding setup failed: xauth key data not generated Warning: No xauth data; using fake authentication data for X11 forwarding. However, that doesn't appear if I log in from the older openSUSE and it doesn't seem to matter much as form the old server, this works great:
xclock & However, from the new 11.3, all I get is "Error: Can't open display: " What is wrong with the sshd in 11.3? How to fix this? Ok, so I really don't know what is wrong, but fix was this... first let's go back a little. I wrote that this is clean installation with minimum changes. Well, one of the change was that in Global Network settings, I removed the tick mark from "Enable IPv6" as the help said: "To disable IPv6, uncheck this option (...). If the IPv6 protocol is not used on your network, the response time can be faster." Well, AFAIK, I'm not using IPv6 and I think that my router is not supporting it (although, it might). However, seems that while SSH was completely fine otherwise working without IPv6, the X forwarding didn't work. Why? I have no idea. But that was the fix: I enabled it, rebooted and X started to work over SSH just as it should I have IPv6 disabled on 11.3 and on 11.1 on different machine and have no problem with X forwarding (ssh -Y ...). One thing I noticed quite some time ago (I guess, it was 11.1) that when you disable IPv6 through Global Network Settings in Yast, the file /etc/hosts still have some IPv6 definitions for local hosts and some others. This caused some problems until I removed these entries from /etc/hosts manually. I suspect that this is the case with 11.3 too. I was checking the hosts file and as I saw the IPv6 addresses there, I remembered that I had disabled that and therefore went and enabled it again. So, basically I think that disabling IPv6 breaks things and causes bugs to show, but I don't know why or how... I just leave it on for now.
Which is the correct solution - if a fix is to disable IPv6 then the fix is broken.
Something is obviously broken, but the fix was the another way around. I had disabled IPv6 as I thought I don't need it. All computers are in my home network, separated by simple gigabit switch at the testing time (another D-Link working as NAT/DHCP). Once more: 1) IPv6 disabled, SSH did work, but X forwarding didn't. Tried from OS X and openSUSE 10.2 (no idea whether that supports IPv6 or not). 2) IPv6 enabled SSH still works, but now also X forwarding works. Fix is to leave IPv6 enabled. The question is, if things like this (which used to work in the world of IPv4) break if IPv6 is disabled, should they be fixed or should there be no possibility to disable IPv6? For me, it is just as fine to go with IPv6 enabled.
Do both machines have IPv6 addresses? `ip -6 addr` Can the machines ping each other's IPv6 addresses? `ping6 fdb5:60da:9b8a:1:250:56ff:fea8:27e2` [assuming they are on the same subnet]
About this... I really hate it if I some day need to start to use addresses like this in my home network. :-(
If not then something is broken.
Are the firewalls blocking IPv6 traffic - generally they should mirror the IPv4 configuration?
No firewalls in between the computers. -- HG. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org