This is a question about X Windows support for Mac.

I sometimes ssh to a Linux computer, and start software there.

The software requires graphical interface (a DISPLAY).

I am curious whether it is possible to direct all graphical output from the Linux machine to my local Mac computer that I use for sshing to the Linux machine.

2 Answers 2


You can X-tunnel over ssh on a mac; OS X machines all have an X server installed by default. You need to use the command ssh -X [hostname] to enable the X-tunnel, and then start the program via the shell. Typically, you do not need to specify your local display; the program should display locally automatically.

  • 3
    This might also need X11Forwarding yes in sshd_config on your Linux box.
    – Arjan
    Oct 24, 2010 at 16:53
  • 1
    Some servers will only allow trusted connections, if so use ssh -Y. (or put ForwardX11Trusted Yes into ~/ssh/config for this host) Oct 27, 2010 at 19:45

Yes, yes it is. According to Apple it is optional but installed by default. There's also Xquartz

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.