X11 forwarding problem (again)

I just got a brand new iMac (OSX 10.14.4) and of course now X11 forwarding is not working anymore even after trying to apply all the 'tricks' that worked with my previous computer.


Here is what I tried and used to work:

cd /etc/ssh/

vim sshd_config

X11Forwarding yes

XauthLocation /opt/X11/bin/xauth

X11DisplayOffset 10

X11UseLocalhost no


Then:

cd /System/Library/LaunchDaemons

launchctl unload ssh.plist

launchctl load ssh.plist


The "launchctl unload ssh.plist" command does not work anymore. I get "/System/Library/LaunchDaemons/ssh.plist: Could not find specified service"


Any advice? Has anyone successfully done this recently?

Thanks




iMac 27", macOS 10.14

Posted on May 15, 2019 9:54 AM

Reply

Similar questions

3 replies

May 15, 2019 8:08 PM in response to cbeghein

Did "ssh -Y" work?


Did you specify BOTH

ForwardX11Trusted yes
ForwardX11 yes

in our config file?


Either the -Y or the 2 forwarding options together should work.


I'm assuming you can actually connect to the remote system, and it is just that DISPLAY is not being set on the remote system.


Have you logged out and logged back in (or rebooted) since you installed XQuartz?


If you do "printenv DISPLAY" do you get something like:

printenv DISPLAY
/private/tmp/com.apple.launchd.HDR2owme20/org.macosforge.xquartz:0


If you have tried all the above, and still failing, then it is time to add -v -v -v to the ssh command, and then look at the output to see if you can see anything related to setting up the X11 tunnel that is going bad.


Maybe if you can do the same starting from a Linux system desktop to another Linux system (maybe via a VNC connection to the first Linux system). Anyway, if you can get an "ssh -v -v -v -Y other.linux.system" you can compare the -v -v -v output from that Linux system against what you get doing the same thing from your Mac.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

X11 forwarding problem (again)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.