[MacPorts] #13611: openssh messes up X11 Forwarding
#13611: openssh messes up X11 Forwarding ------------------------------+--------------------------------------------- Reporter: andre@cabine.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.5.2 Keywords: | ------------------------------+--------------------------------------------- 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 -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13611> MacPorts </projects/macports> Ports system for Mac OS
#13611: openssh messes up X11 Forwarding -------------------------------+-------------------------------------------- Reporter: andre@cabine.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.5.2 Resolution: | Keywords: -------------------------------+-------------------------------------------- Comment (by vinc17@macports.org): ''/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. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13611#comment:1> MacPorts </projects/macports> Ports system for Mac OS
#13611: openssh messes up X11 Forwarding -------------------------------+-------------------------------------------- Reporter: andre@cabine.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.5.2 Resolution: | Keywords: -------------------------------+-------------------------------------------- Comment (by andre@cabine.org): 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. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13611#comment:2> MacPorts </projects/macports> Ports system for Mac OS
#13611: openssh messes up X11 Forwarding -------------------------------+-------------------------------------------- Reporter: andre@cabine.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.5.2 Resolution: | Keywords: -------------------------------+-------------------------------------------- Comment (by vinc17@macports.org): 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. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13611#comment:3> MacPorts </projects/macports> Ports system for Mac OS
#13611: openssh messes up X11 Forwarding -------------------------------+-------------------------------------------- Reporter: andre@cabine.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.5.2 Resolution: | Keywords: -------------------------------+-------------------------------------------- Comment (by andre@cabine.org): I thought so too (about Git). But after reading bug #12865 I think this issue has been raised before and nothing was done... -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13611#comment:4> MacPorts </projects/macports> Ports system for Mac OS
#13611: openssh messes up X11 Forwarding -------------------------------+-------------------------------------------- Reporter: andre@cabine.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.5.2 Resolution: | Keywords: -------------------------------+-------------------------------------------- Comment (by ram@macports.org): 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 -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13611#comment:5> MacPorts </projects/macports> Ports system for Mac OS
#13611: openssh messes up X11 Forwarding -------------------------------+-------------------------------------------- Reporter: andre@cabine.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.5.2 Resolution: | Keywords: -------------------------------+-------------------------------------------- Changes (by jmpp@macports.org): * milestone: => Port Bugs Old description:
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
New description: {{{ 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 }}} Comment: To the original poster: please read WikiFormatting to learn how to properly format terminal output into a ticket. Thanks! -jmpp -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13611#comment:6> MacPorts </projects/macports> Ports system for Mac OS
#13611: openssh messes up X11 Forwarding -------------------------------+-------------------------------------------- Reporter: andre@cabine.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.5.2 Resolution: | Keywords: -------------------------------+-------------------------------------------- Comment (by vinc17@macports.org): You can still be able to use Apple's ssh by setting GIT_SSH. Installing git-core will install openssh due to the dependency, but this shouldn't hurt. BTW, the dependency may be a good idea by default. But a variant to avoid it would probably be a good thing for powerful users as AFAIK, the MacPorts version can't prevent the user from choosing Apple's version via GIT_SSH. Also, do you really need X11 forwarding for git? I thought SSH was used only to transfer the repository data. You can try: {{{export GIT_SSH="ssh -x"}}} (or use a wrapper script). -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13611#comment:7> MacPorts </projects/macports> Ports system for Mac OS
#13611: openssh messes up X11 Forwarding -------------------------------+-------------------------------------------- Reporter: andre@cabine.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.5.2 Resolution: | Keywords: -------------------------------+-------------------------------------------- Comment (by andre@cabine.org): I use ssh mainly to have a shell on remote servers, that's why I need X11 forwarding. I don't need X11 forwarding for Git's connections of course but since I have macports bin dir on my $PATH I get the macports's ssh. I can't put the system dir first because, for other things like Perl and Python, I need the macports binaries... At least I think I do since some ports requested them and not the system ones. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13611#comment:8> MacPorts </projects/macports> Ports system for Mac OS
#13611: openssh messes up X11 Forwarding -------------------------------+-------------------------------------------- Reporter: andre@cabine.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.5.2 Resolution: | Keywords: -------------------------------+-------------------------------------------- Comment (by ram@macports.org): I've attached a patch that applies Apples patch, along with fixing the "percent_expand: NULL replacement" issue with the proposed upstream patch, taken from <https://bugzilla.mindrot.org/show_bug.cgi?id=1377> This works for me, could you see if this fixes the problem for you? -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13611#comment:9> MacPorts </projects/macports> Ports system for Mac OS
#13611: openssh messes up X11 Forwarding -------------------------------+-------------------------------------------- Reporter: andre@cabine.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.5.2 Resolution: | Keywords: -------------------------------+-------------------------------------------- Changes (by ram@macports.org): * cc: ram@macports.org (added) -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13611#comment:10> MacPorts </projects/macports> Ports system for Mac OS
#13611: openssh messes up X11 Forwarding -------------------------------+-------------------------------------------- Reporter: andre@cabine.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.5.2 Resolution: | Keywords: -------------------------------+-------------------------------------------- Comment (by vinc17@macports.org): But you can disable X11 forwarding for git only (thanks to the GIT_SSH environment variable). Even if openssh is patched, this should make connections faster. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13611#comment:11> MacPorts </projects/macports> Ports system for Mac OS
#13611: openssh messes up X11 Forwarding -------------------------------+-------------------------------------------- Reporter: andre@cabine.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.5.2 Resolution: | Keywords: -------------------------------+-------------------------------------------- Comment (by andre@cabine.org): How do I apply this patch while installing the port? Is this in the documentation somewhere? -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13611#comment:12> MacPorts </projects/macports> Ports system for Mac OS
#13611: openssh messes up X11 Forwarding -------------------------------+-------------------------------------------- Reporter: andre@cabine.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.5.2 Resolution: | Keywords: -------------------------------+-------------------------------------------- Comment (by ram@macports.org): {{{ cd `port dir openssh` sudo patch -p2 < /path/to/ssh-x11-percent_expand sudo port install }}} should do the trick -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13611#comment:13> MacPorts </projects/macports> Ports system for Mac OS
#13611: openssh messes up X11 Forwarding -------------------------------+-------------------------------------------- Reporter: andre@cabine.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.5.2 Resolution: | Keywords: -------------------------------+-------------------------------------------- Comment (by andre@cabine.org): It worked, thanks. Still... It would be nice if git-core just used the existing ssh, which is already there. It just seems a big waste of disk space when we are duplicating everything... -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13611#comment:14> MacPorts </projects/macports> Ports system for Mac OS
#13611: openssh messes up X11 Forwarding -------------------------------+-------------------------------------------- Reporter: andre@cabine.org | Owner: ram@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.5.2 Resolution: | Keywords: -------------------------------+-------------------------------------------- Changes (by ram@macports.org): * owner: macports-tickets@lists.macosforge.org => ram@macports.org * status: new => assigned -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13611#comment:15> MacPorts </projects/macports> Ports system for Mac OS
#13611: openssh messes up X11 Forwarding -------------------------------+-------------------------------------------- Reporter: andre@cabine.org | Owner: ram@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.5.2 Resolution: fixed | Keywords: -------------------------------+-------------------------------------------- Changes (by ram@macports.org): * status: assigned => closed * resolution: => fixed Comment: fixed in r32161 -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13611#comment:16> MacPorts </projects/macports> Ports system for Mac OS
participants (1)
-
MacPorts