# VNC vs SSH for Remote Mac: Which to Use Guide

Canonical: https://figment.so/blog/mac-vnc-vs-ssh-remote-access

Use VNC when you need the macOS display and SSH for command-line builds and file transfers. For a long-lived workstation, run SSH and tunnel VNC through it. Every Figment plan includes SSH; the Intel Mac VM and the Dedicated M4 Pro also include remote desktop.

**Use VNC for anything that needs the macOS display, such as Xcode's organiser, Simulator, Sketch and System Settings. Use SSH for command-line builds, file transfers and CI agent registration.** For a persistent developer workstation, use SSH as the transport and tunnel VNC through it. The two protocols serve different layers of the same job, and the Intel Mac VM and the Dedicated M4 Pro include SSH, an encrypted remote desktop connection and browser access.

## What does VNC give me that SSH cannot?

VNC gives you the graphical desktop. It is the Remote Framebuffer protocol standardised in [RFC 6143](https://datatracker.ietf.org/doc/html/rfc6143). It streams the host Mac's screen as a framebuffer and relays keyboard and mouse events back, so you see the full macOS desktop as the host renders it.

These tasks work only over VNC:

- **GUI applications.** Xcode's graphical scheme editor, Instruments, Simulator, Figma desktop and Sketch all open windows and need a display. SSH does not expose one.
- **System Settings navigation.** Accessibility, display colour profiles, user account creation and TCC privacy prompts are not reliably driven by `defaults write` alone.
- **Screen recording and client demos.** QuickTime on the host captures the real display, and the client needs nothing extra.

VNC listens on **TCP 5900** by default, with additional displays on 5901, 5902 and so on. Its built-in authentication is a DES challenge-response with the password truncated to 8 characters. RFC 6143 states this method "is known to be cryptographically weak and is not intended for use on untrusted networks" and recommends running the session over IPsec or SSH. Never expose 5900 directly to the internet. On Figment, raw VNC is reachable only through an authenticated, encrypted connection and is never exposed directly.

## What does SSH give me that VNC cannot?

SSH gives you a fast, encrypted shell. See [OpenBSD ssh(1)](https://man.openbsd.org/ssh). Anything a terminal can do, SSH can do remotely with almost no overhead.

- **Fast builds and automation.** `xcodebuild`, `fastlane`, `brew` and package installs run at line speed, while VNC adds display rendering latency to every line of output.
- **File transfer.** `scp`, `rsync -az` and SFTP all layer over SSH. Push a 2 GB asset or sync a font library with one command. VNC clipboard paste is not designed for binary payloads.
- **CI agent registration.** GitHub Actions self-hosted runners and Buildkite agents connect outbound over HTTPS. You register and start them in an SSH terminal, and no display is required.
- **Port forwarding.** The `-L` flag tunnels a local port to any port on the host through the encrypted channel, including VNC's 5900.

## How do latency and bandwidth compare?

SSH uses far less bandwidth than VNC, and its delay is mostly your network round-trip time. The numbers below are rough planning figures, not benchmarks, and they are not Figment measurements. We do not publish latency figures for our remote desktop connection.

| Metric | SSH (CLI only) | VNC (full desktop, ZRLE/TRLE) |
|--------|---------------|-----------------------------------|
| Idle bandwidth | under 1 KB/s | 10 to 50 KB/s keep-alive |
| Active 1920×1080 UI work | n/a | 1 to 8 Mbps typical |
| Active 4K with video playback | n/a | 20 to 60 Mbps |
| Command output latency over 50 ms RTT | roughly 50 to 80 ms | 80 to 200 ms |
| Minimum useful uplink | 1 Mbps | 5 Mbps recommended |

VNC uses demand-driven updates: the client requests a framebuffer update and the host returns only the changed rectangles, which ZRLE and TRLE encodings compress further. Even so, a 4K display during active design work is expensive. On a slow link, switch the client to 256-colour or grayscale mode and close video-playing tabs on the host.

## How do I wrap VNC inside an SSH tunnel?

Open the tunnel first, then point your VNC client at localhost:

```bash
# Replace USER, HOST with your rental credentials
# -N: do not execute a remote shell
# -L: forward local port 5901 to the host's port 5900
ssh -N -L 5901:localhost:5900 USER@HOST
```

Leave that terminal running and connect your VNC client to **localhost:5901**. All VNC traffic travels inside the encrypted SSH channel, and 5900 on the host does not need to be reachable from the internet. Use the host name and SSH details shown in your Figment account.

Add `-f` to send the tunnel to the background:

```bash
ssh -f -N -L 5901:localhost:5900 USER@HOST
```

To close the background tunnel, run `kill $(lsof -ti tcp:5901)`.

For convenience, add a Host block to `~/.ssh/config`:

```
Host mymac
    HostName HOST
    User USER
    LocalForward 5901 localhost:5900
    ServerAliveInterval 60
```

Then `ssh -N mymac` opens the tunnel in one command. The flags are documented in the [OpenBSD ssh(1) manual](https://man.openbsd.org/ssh).

## Which should I choose, VNC or SSH?

We recommend SSH for anything a terminal can do and VNC tunnelled through SSH for anything that needs the display.

| Workflow | Protocol | One command to get started |
|----------|----------|---------------------------|
| Run Xcode GUI, Instruments, or Simulator | VNC inside an SSH tunnel | `ssh -N -L 5901:localhost:5900 USER@HOST`, then connect VNC to `localhost:5901` |
| CLI builds: `xcodebuild`, `fastlane`, `brew` | SSH | `ssh USER@HOST` |
| Upload or download large files, sync fonts | SSH via SFTP or rsync | `rsync -az ./fonts/ USER@HOST:~/Library/Fonts/` |
| Admin tasks: install pkg, change settings | SSH plus `sudo` | `ssh USER@HOST` then `sudo installer -pkg ./Thing.pkg -target /` |
| Register a CI runner (GitHub Actions, Buildkite) | SSH to start the agent | `ssh USER@HOST './actions-runner/run.sh'` |
| Screen recording or live client demo | VNC (tunnel still recommended) | Connect VNC; record with QuickTime on the host |
| Persistent developer workstation | SSH tunnel plus VNC | Open tunnel with `-f -N`; connect VNC client to `localhost:5901` |

## How do I connect from macOS, Windows or Linux?

Open the tunnel, then connect a VNC client to `localhost:5901`.

**macOS client (built-in):**

1. In Terminal: `ssh -N -L 5901:localhost:5900 USER@HOST`
2. Finder → Go → Connect to Server → `vnc://localhost:5901`
3. Enter the Screen Sharing password set on the host.

**Windows client:**

1. Use the built-in OpenSSH (Windows 10 and later) or install [PuTTY](https://www.putty.org/).
2. In PowerShell or Windows Terminal: `ssh -N -L 5901:localhost:5900 USER@HOST`
3. Open RealVNC Viewer or TigerVNC and connect to `localhost:5901`.

**Linux client:**

1. `ssh -f -N -L 5901:localhost:5900 USER@HOST`
2. `vncviewer localhost:5901`, or use Remmina with the address `vnc://localhost:5901`.

## Do all Figment plans include SSH, browser access and remote desktop?

Every plan includes browser access, SSH and administrator access to your own Mac or VM. The Intel Mac VM and the Dedicated M4 Pro also include an encrypted remote desktop connection; the Apple Silicon Mac VM does not include it yet. Choose by the work. Use the [Apple Silicon Mac VM](/mac-hosting#apple-silicon-vm) ($39 a month) or the [Dedicated M4 Pro 48 GB](/mac-hosting#dedicated-m4-pro) ($349 a month) for Simulator, GUI tools and current Xcode, and the [Intel Mac VM](/mac-hosting#intel-vm) ($25 a month) for Xcode 26.3 or earlier. Check the connection details shown in your account for the remote desktop client and protocol. Turn on Screen Sharing yourself as described in [enabling Screen Sharing on a rented Mac](/blog/mac-screen-sharing-rental-setup).

**Related guides:**

- [macOS dev-class remote desktop setup](/blog/mac-remote-desktop-macos-dev-class)
- [Remote Mac contractor onboarding](/blog/mac-contractor-remote-onboarding)
- [Self-hosted GitHub Actions runner on Mac](/blog/mac-github-actions-self-hosted-runner)
