Connect
Screen Sharing and VNC
Use the macOS desktop through an SSH tunnel when the work needs a screen.
The desktop is not exposed to the internet. You reach it by forwarding the Screen Sharing port over your SSH connection.
Open the tunnel
- 1Start a tunnel from a free local port to port 5900 on the Mac.
- 2Leave that terminal open.
- 3Point your viewer at the local port.
Tunnel
ssh -N -L 5901:localhost:5900 -p PORT USER@HOSTConnect a viewer
open vnc://localhost:5901Sign in with the macOS user name from your booking page. The first time, set a desktop password over SSH with passwd; it is erased with the disk when the term ends.