How do I connect to a macOS container via VNC?

To connect to a MacOS container via VNC:

  • Add the following step to the job you wish to VNC into:
        name: Add VNC user
      	command: sudo /usr/sbin/sysadminctl -addUser vncuser -fullName "VNC User" -password <<password>> -admin

Tip: Replace <<password>> with a password of your choosing.

  • Select the macOS job in question and click the Rerun button, then Rerun Job with SSH
  • Configure SSH port-forwarding on your local machine:
    • ssh -p 54782 <mac container ip> -L5901:localhost:5900 -N
  • Download and install VNC Viewer and access localhost:5901
  • Use the credentials vncuser/<<password>> when prompted.
Was this article helpful?
7 out of 14 found this helpful



Article is closed for comments.