ssh X11 forwarding (xorg-server) on Yosemite (again?)
Jason Wm. Mitchell
jason-macports at maiar.org
Sun Jan 11 15:09:10 PST 2015
Howdy,
Does anyone have X11 forwarding working w/ 10.10.1? After much
kajiggering, still: (from Mac 10.10.1 => to Ubuntu 14.04.1)
mac $ ssh -vY remote
debug1: No xauth program.
Warning: No xauth data; using fake authentication data for X11 forwarding.
debug1: Requesting X11 forwarding with authentication spoofing.
linux $ xterm
Invalid MIT-MAGIC-COOKIE-1 keyxterm: Xt error: Can't open display: localhost:10.0
or
linux $ xterm
xterm: Xt error: Can't open display
or occasionally in either case above, the remote DISPLAY is
localhost:11.0, though the display offset is 10
By default, I have mac DISPLAY=:0.0, rather than the usually expected
socket, e.g. DISPLAY=/tmp/com.apple.launchd.XXXXXXXXXX/org.macports:0.
If I manually set the DISPLAY to the socket, local apps do not error
out, but never displays a window.
In addition, X forwarding works fine between the Ubuntu 14.04.1 setup
and other Linux boxen on the LAN.
Other things to note:
- Macports 2.3.3
- xorg-server @1.16.3_0
- xinit @1.3.3_1
- launchctl for agents and daemons triggered
- all old Apple X11 and XQuartz items removed per various instructions
found on the web
- ran: pkgutil --forget com.apple.pkg.X11redirect
- local X11 apps work, e.g. xterm
- 'xauth list' works on local and remote
- openssh:
- Macports: openssh @6.7p1_0+kerberos5+xauth
- /usr/bin/ssh -v: OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
- XAuthLocation set mac:~/.ssh/config and linux:/etc/ssh/sshd_config
- forwarding enabled in mac:~/.ssh/config and linux:/etc/ssh/sshd_config
thanks,
-jason
More information about the macports-users
mailing list