Opened 16 years ago

Last modified 15 years ago

#13611 closed defect

openssh messes up X11 Forwarding — at Version 6

Reported by: andre@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.5.2
Keywords: Cc:
Port:

Description (last modified by jmpp@…)

andre@prettyboy:~$ ssh -X andre.localhost
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
Linux huge 2.6.22-14-386 #1 Sun Oct 14 22:36:54 GMT 2007 i686

You have new mail.
Last login: Mon Dec 17 15:02:18 2007 from prettyboy.local
andre@huge:~$ xhost
/tmp/launch-35O3HH/: unknown host. (nodename nor servname provided, or not known)
X connection to localhost:11.0 broken (explicit kill or server shutdown).
andre@huge:~$ 

Apple's ssh binary works fine. As git-core depends on the openssh port this is giving me a major pain...

andre@prettyboy:~$ ssh -V
OpenSSH_4.7p1, OpenSSL 0.9.8g 19 Oct 2007

Change History (6)

comment:1 Changed 16 years ago by vinc17@…

/tmp/launch-35O3HH/: unknown host.

I assume you're using Leopard, where Apple introduced a hack so that the X server can be started automatically. Perhaps Apple's ssh has been modified to support this hack? I suggest that you ask in the x11-users list (at lists.apple.com).

Otherwise, you can start the X server manually and set the DISPLAY environment variable to ":0". I don't know if this will work, though.

comment:2 Changed 16 years ago by andre@…

Yes I'm using leopard. And I kind of like Apple's "hack". :)

I thought it was a bug of the port, but since it's a feature of the stock OpenSSH I'll just keep using it. It's a shame that git-core depends on the macports' version though. I'll have to compile Git myself.

Thanks.

comment:3 Changed 16 years ago by vinc17@…

I wonder if the openssh port should be patched...

Now, the fact that git-core depends on the MacPorts' version is probably a bug, as the user can choose whatever ssh client he wants via the GIT_SSH environment variable.

comment:4 Changed 16 years ago by andre@…

I thought so too (about Git). But after reading bug #12865 I think this issue has been raised before and nothing was done...

comment:5 Changed 16 years ago by skymoo (Adam Mercer)

This is the patch that Apple applies to OpenSSH to make it aware of the Launchd X11

http://www.opensource.apple.com/darwinsource/10.5/OpenSSH-87/patches/DVG-5142987_launchd_DISPLAY_for_X11.patch

comment:6 Changed 16 years ago by jmpp@…

Description: modified (diff)
Milestone: Port Bugs

To the original poster: please read WikiFormatting to learn how to properly format terminal output into a ticket. Thanks!

-jmpp

Note: See TracTickets for help on using tickets.