You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

x11 Forwarding

One Server: OSX Server Yosemite, one Mac client, also on Yosemite.

Latest updates installed.


- I am able to connect from the client to the server by ssh.

- What I cannot do is connect with X11 forwarding.


I try this:

ssh -Y jwar@luna.delarte.nl

and get:

X11 forwarding request failed on channel 0


I edited etc/sshd_config

X11Forwarding yes

X11DisplayOffset 10

X11UseLocalhost no


I have done this with Linux for years. The client Mac can connect to Linux servers and use X11 forwarding.So the client Mac is basically ok.


Is it possible to use X11forwarding on an OSX Server? How to do it?

Posted on Feb 11, 2015 2:37 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 11, 2015 8:40 AM

What about "ssh -o ForwardX11=yes -X ..."?

5 replies

Feb 12, 2015 2:38 AM in response to Jan-Willem Arnold

Needed is one more line.


Configuration:


etc/ sshd_config


X11Forwarding yes

XauthLocation /opt/X11/bin/xauth

X11DisplayOffset 10

X11UseLocalhost no


Afterwards restart the ssh service like:

cd /System/Library/LaunchDaemons

launchctl unload ssh.plist

launchctl load ssh.plist


Then, open on your client X11 (Quartz) (you might need to install it)

Open a terminal in X11 (from the menu programs, terminal)

ssh -Y user@example.com

logon and type xclock to try whether it works

May 17, 2015 10:49 AM in response to Jan-Willem Arnold

I tried the solution you suggested and disaster has struck. X11 no longer works. It starts, crashes, starts, crashes, etc. I have reinstalled XQuartz twice, and reinstalled OS X as well (plus a reinstall of X). I'm running the latest OS 10,10,3. There has to be some miserable file somewhere that should not be there. But how to find and remove it? Are there log files somewhere that I can look at? Use X all the time and not having it is a very big issue.

x11 Forwarding

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