[opensuse] ssh -X localhost
This doesn't work in 11.4 Tumbleweed: ssh -X localhost xclock Error: Can't open display: The same works on SLES11. What has changed, why isn't X forwarded anymore and what's the "approved" way to do it now? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 09/09/2011 10:38 AM, Silviu Marin-Caea pecked at the keyboard and wrote:
This doesn't work in 11.4 Tumbleweed:
ssh -X localhost xclock Error: Can't open display:
The same works on SLES11. What has changed, why isn't X forwarded anymore and what's the "approved" way to do it now?
Do you have the sshd daemon enabled and running? If it is not running on the host you cannot access ssh to the host. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 09 Sep 2011 21:38:44 +0530, Ken Schneider - openSUSE <suse-list3@bout-tyme.net> wrote:
On 09/09/2011 10:38 AM, Silviu Marin-Caea pecked at the keyboard and wrote:
This doesn't work in 11.4 Tumbleweed:
ssh -X localhost xclock Error: Can't open display:
The same works on SLES11. What has changed, why isn't X forwarded anymore and what's the "approved" way to do it now?
Do you have the sshd daemon enabled and running? If it is not running on the host you cannot access ssh to the host.
works for me on 11.4, non-tumbleweed. -- phani. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, Sep 9, 2011 at 12:13 PM, phanisvara das <listmail@phanisvara.com> wrote:
On Fri, 09 Sep 2011 21:38:44 +0530, Ken Schneider - openSUSE <suse-list3@bout-tyme.net> wrote:
On 09/09/2011 10:38 AM, Silviu Marin-Caea pecked at the keyboard and wrote:
This doesn't work in 11.4 Tumbleweed:
ssh -X localhost xclock Error: Can't open display:
The same works on SLES11. What has changed, why isn't X forwarded anymore and what's the "approved" way to do it now?
Do you have the sshd daemon enabled and running? If it is not running on the host you cannot access ssh to the host.
works for me on 11.4, non-tumbleweed.
there are dozens of things that could be wrong. the sshd_config in /etc/sshd could be set to not allow X forwarding for some reason, if you did an inplace upgrade/overlay install and didn't change/reformat /home, you could have a keys mismatch in ~/.ssh/known_hosts (could nuke or edit the file and try again). those are the most likely things I can think of to try/fix. if you run xclock before you do the ssh command, does it work? this seems like a very odd thing to be doing. ssh -vvvv -X localhost might give some better clues as to what's breaking down. my default install of 11.4 (just downloaded and installed to a vm today) does not have sshd turned on by default, for some reason. -- Even the Magic 8 ball has an opinion on email clients: Outlook not so good. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Ken Schneider - openSUSE wrote:
Do you have the sshd daemon enabled and running? If it is not running on the host you cannot access ssh to the host.
I think if sshd wasn't running, the session wouldn't start and it wouldn't be possible to type the xclock command :) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Silviu Marin-Caea wrote:
This doesn't work in 11.4 Tumbleweed:
ssh -X localhost xclock Error: Can't open display:
The same works on SLES11. What has changed, why isn't X forwarded anymore and what's the "approved" way to do it now?
It works fine for me. I use it all the time, with both 11.0 and 11.4 as well as many other versions and distros. In fact, I just did it on my work server from home to run xclock and xcalc. I also often use it to run yast2, wireshark and even browsers remotely. It just works. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* James Knott <james.knott@rogers.com> [09-09-11 21:46]:
Silviu Marin-Caea wrote:
This doesn't work in 11.4 Tumbleweed:
ssh -X localhost xclock Error: Can't open display:
The same works on SLES11. What has changed, why isn't X forwarded anymore and what's the "approved" way to do it now?
It works fine for me. I use it all the time, with both 11.0 and 11.4 as well as many other versions and distros. In fact, I just did it on my work server from home to run xclock and xcalc. I also often use it to run yast2, wireshark and even browsers remotely. It just works.
I have the same problem with 11.4 but worked[s] fine in 11.2 ??? the output of `ssh -vvvv -Y localhost` appears: http://wahoo.no-ip.org/~pat/ssh.vvvv.txt I have had no luck :^( -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 09/10/2011 05:27 AM, Patrick Shanahan wrote:
* James Knott<james.knott@rogers.com> [09-09-11 21:46]:
Silviu Marin-Caea wrote:
This doesn't work in 11.4 Tumbleweed:
ssh -X localhost xclock Error: Can't open display:
The same works on SLES11. What has changed, why isn't X forwarded anymore and what's the "approved" way to do it now?
It works fine for me. I use it all the time, with both 11.0 and 11.4 as well as many other versions and distros. In fact, I just did it on my work server from home to run xclock and xcalc. I also often use it to run yast2, wireshark and even browsers remotely. It just works.
I have the same problem with 11.4 but worked[s] fine in 11.2 ???
So, there's some new useful information: it works for some people and it does not for some other. Just have to figure out what differs between the two cases. As far as sshd_config and ssh_config, they're the default, AFAIK. I have run "grep -i forward" on those files. In sshd_config, there is: X11Forwarding yes In ssh_config, there is: ForwardX11Trusted yes BTW, forgot to mention that I can use ssh -X on 11.4 to connect to SLES servers and run graphic apps. So this would lead me to believe there's a problem with the ssh server config on my station. However there's no difference between my own sshd_config and the one on a freshly installed laptop with 11.4. Same goes for ssh_config. Solution: Ok, found the cause: IPv6 was disabled on my 11.4. For some reason that upsets the ssh daemon, and it gave this error in /var/log/messages: error: Failed to allocate internet-domain X11 display socket. or, in DEBUG3 LogLevel: debug3: sock_set_v6only: set socket 8 IPV6_V6ONLY debug2: bind port 6010: Cannot assign requested address debug3: sock_set_v6only: set socket 8 IPV6_V6ONLY debug2: bind port 6011: Cannot assign requested address I have enabled IPv6 (although I don't use it) and ssh -X works now. This is a bug, I'll file a report. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 09/12/2011 11:13 AM, Silviu Marin-Caea wrote:
This is a bug, I'll file a report.
This is the new bugreport: https://bugzilla.novell.com/show_bug.cgi?id=717193 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Silviu Marin-Caea <silviumc@fastmail.fm> [09-12-11 04:14]:
Solution: Ok, found the cause: IPv6 was disabled on my 11.4. For some reason that upsets the ssh daemon, and it gave this error in /var/log/messages:
error: Failed to allocate internet-domain X11 display socket.
or, in DEBUG3 LogLevel: debug3: sock_set_v6only: set socket 8 IPV6_V6ONLY debug2: bind port 6010: Cannot assign requested address debug3: sock_set_v6only: set socket 8 IPV6_V6ONLY debug2: bind port 6011: Cannot assign requested address
I have enabled IPv6 (although I don't use it) and ssh -X works now.
This is a bug, I'll file a report.
Thanks for the solution, works for me also. I have commented on your bug report. tks, -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Patrick Shanahan wrote:
* Silviu Marin-Caea<silviumc@fastmail.fm> [09-12-11 04:14]:
Solution: Ok, found the cause: IPv6 was disabled on my 11.4. For some reason that upsets the ssh daemon, and it gave this error in /var/log/messages:
error: Failed to allocate internet-domain X11 display socket.
or, in DEBUG3 LogLevel: debug3: sock_set_v6only: set socket 8 IPV6_V6ONLY debug2: bind port 6010: Cannot assign requested address debug3: sock_set_v6only: set socket 8 IPV6_V6ONLY debug2: bind port 6011: Cannot assign requested address
I have enabled IPv6 (although I don't use it) and ssh -X works now.
This is a bug, I'll file a report.
Thanks for the solution, works for me also. I have commented on your bug report.
tks,
That would explain why it works for me. I use IPv6 and have never had a reason to disable it. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (7)
-
Dave Howorth
-
James Knott
-
Ken Schneider - openSUSE
-
Patrick Shanahan
-
phanisvara das
-
Silviu Marin-Caea
-
zGreenfelder