How to launch max desktop gui when running SSH to Terminal CLI

Can I run a command while remotely connected to my terminal using SSH. On Linux it launches the gui from the shell But I have mac M1

MacBook Air 13″, macOS 13.1

Posted on Jan 16, 2023 1:54 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 16, 2023 2:24 PM

open -a /path/to/app-name.app


However, it is going to start the app and display on the Mac.


VNC over an ssh tunnel would be better


ssh -L 12345:localhost:5900 username@mac.system


On the Linux system

vncviewer localhost:12345


or whatever VNC client you are using on Linux.


If your local system is another Mac, try macOS Screen Sharing, or the same ssh command, and then

Finder -> Go (menu) -> Connect to server -> vnc://localhost:12345

2 replies
Question marked as Top-ranking reply

Jan 16, 2023 2:24 PM in response to vlasiosk

open -a /path/to/app-name.app


However, it is going to start the app and display on the Mac.


VNC over an ssh tunnel would be better


ssh -L 12345:localhost:5900 username@mac.system


On the Linux system

vncviewer localhost:12345


or whatever VNC client you are using on Linux.


If your local system is another Mac, try macOS Screen Sharing, or the same ssh command, and then

Finder -> Go (menu) -> Connect to server -> vnc://localhost:12345

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.

How to launch max desktop gui when running SSH to Terminal CLI

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