Opening a graphical application on Mac OS via SSH

This won’t let you interact with it, but you can at least know it’s been opened on the remote machine. This helped me when I needed Teamviewer to be open after it had crashed.

  1. Log into your Mac OS machine via SSH. This has to be preconfigured, it’s not available by default.
  2. Execute the following
open /Applications/TeamViewer.app

TeamViewer.app can be replaced with any app of your choosing. Autocompletion is available in this directory so it makes it a bit easier to look and find what you might be wanting to open.

Good luck!

 


So, what do you think ?