MacOS – Sharing GUI windows between Macs


I have two macs on the same local network. What I want to do is to ssh into one mac from the other and open GUI windows. I do not want to share the whole screen, just windows I open from the terminal.

Between Linux computers it is possible to do ssh -X user@host, an equivalent to this on mac is exactly what I want.

Is this possible? If so, how?

Best Answer

Well, if you start an Application that uses X11, just like that : ssh -X user@host

You can run most "Linux GUI" X11 applications on mac as described here using docker: How to run a Linux GUI application on OSX using Docker

Make sure to check out XPRA for Mac, too. You can forward X11 apps on mac or forward the whole mac desktop using xpra, to install do

brew install Caskroom/cask/xpra

to shadow the desktop

/Applications/  shadow --bind-tcp=