macOS VNC Reverse Tunnel

One-shot Apple Remote Management setup over a reverse SSH tunnel. It does not create users, store passwords, install autostart items, or expose VNC publicly.

Run On Target MacBook

cd "/Users/antony/Library/Mobile Documents/com~apple~CloudDocs/codex/mac-vnc-reverse-tunnel"
chmod +x setup-vnc-ssh-tunnel.sh
./setup-vnc-ssh-tunnel.sh

Operator Connection

The script prints an SSH local-forward command. Run that on the operator machine, then connect the VNC client to vnc://127.0.0.1:5901.

Stop Session

Press Ctrl+C in the target MacBook terminal running the script. Disable Remote Management separately when finished.