using `ssh -Y user@ip` to connect to my macbook from ubuntu 18.04

I followed this x11 Forwarding - Apple Community to configure my macbook pro. So I can use `ssh -Y user@ip` to connect to my macbook from ubuntu 18.04 without warning and error. But the `open -a AppName` comand just open the app on my laptop without forwarding. Is there anything I missed? How can I see the GUI on my ubuntu OS?

MacBook Pro Retina

Posted on Oct 21, 2019 12:22 AM

Reply
5 replies

Oct 23, 2019 8:44 PM in response to fduh

X11 forwarding requires the two systems to be using X11. macOS does not use X11 so you would need to install this on the Mac if you wanted X11 forwarding. You do not need X11 to access the Mac's GUI from Linux. You just need to go into the "Sharing" preferences or possibly "Remote Management" section and make sure to enable "VNC" as it is not selected by default.


See this article:

https://support.apple.com/guide/mac-help/turn-screen-sharing-on-or-off-mh11848/mac


https://apple.stackexchange.com/questions/84221/can-i-remotely-access-my-mac-from-linux-using-screen-sharing


Using SSH & VNC together:

https://www.techrepublic.com/article/how-to-connect-to-vnc-using-ssh/


Oct 23, 2019 7:21 PM in response to HWTech

I'am a little confused. What is the meaning of `install X Windows on the Mac`? Does the `VNC mode` refer to the `System Preference` > `Sharing` > `Screen Sharing` service of Mac? It is used to connect the entire GUI of my Mac, right? I just need to see some applications' GUI, not the entire OS GUI.

Oct 22, 2019 12:19 AM in response to fduh

Unless you install X Windows on the Mac you cannot use X11 forwarding. If you want to access the macOS from Ubuntu, you need to enable VNC mode in the Remote Management section on macOS. Then you can use any VNC app on Ubuntu to connect to the Mac. If you want a secure connection, then make sure to first connect to the Mac via ssh. Some VNC apps have an ssh option built-in.

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.

using `ssh -Y user@ip` to connect to my macbook from ubuntu 18.04

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