# Enable Screen Sharing on a Rented Mac Mini

Canonical: https://figment.so/blog/mac-screen-sharing-rental-setup

On macOS 12.1 and later you turn Screen Sharing on in System Settings, not with a shell command, then reach it from Windows or Linux through an SSH tunnel. The Intel Mac VM and the Dedicated M4 Pro include administrator access and SSH.

**On macOS 12.1 and later you cannot enable Screen Sharing with a shell command alone.** The `kickstart` helper that ships with Remote Management can only deactivate the service, so turning on Screen Sharing or Remote Management now requires the Sharing pane in System Settings or an MDM configuration profile. On a rented Mac that means a short checklist in System Settings, then an SSH tunnel from your Windows or Linux machine. The Intel Mac VM and the Dedicated M4 Pro include SSH and administrator access to your own Mac or VM, so you can do all of it yourself.

## What do I need from a Mac rental before this works?

You need four things, and you can check each one in your Figment account or the Mac itself:

1. An administrator account, so you can toggle sharing yourself. Figment gives you administrator access to your own Mac or VM, never the host.
2. SSH access, which the Intel Mac VM and the Dedicated M4 Pro include.
3. A way to reach a macOS desktop the first time, for example the browser access that every plan includes. Figment has not published which remote desktop client or protocol it uses, so confirm the connection details shown in your account.
4. The macOS version, shown before purchase. The steps below are for current macOS System Settings.

Raw VNC on a Figment Mac is reachable only through an authenticated, encrypted connection and is never exposed directly. You do not need to ask anyone to open port 5900, and the SSH tunnel below keeps the port private.

## How do I turn on Screen Sharing on current macOS?

Use System Settings. Apple's guidance for [turning Screen Sharing on or off](https://support.apple.com/guide/mac-help/turn-mac-screen-sharing-on-or-off-mh11848/mac) is a System Settings workflow, not a `kickstart` one. You need an interactive desktop session for the first toggle.

Open **Apple menu → System Settings → General → Sharing**, then:

1. If Remote Management is on, turn it off, because Remote Management and Screen Sharing cannot run at the same time.
2. Click the information button next to **Screen Sharing** and switch it on.
3. Under **Allow access for**, choose **Only these users** and add the single operator account you will connect as. Avoid **All users**, which admits every local account, including service users you may not control.
4. Decide whether to enable **VNC viewers may control screen with password** and set a password. Without that toggle, only Apple's own Screen Sharing client (on another Mac) can authenticate. Third-party clients on Windows and Linux rely on this VNC-compatibility path.
5. Click **Done**.

Native Apple Screen Sharing and legacy VNC are not the same protocol. macOS speaks an extended RFB dialect that Apple's Mac client negotiates (higher colour depths, clipboard sync and drag-and-drop). The VNC-compatibility toggle falls back to plain RFB so RealVNC Viewer, TigerVNC and Remmina can connect. That compatibility authentication is the DES challenge/response defined in [RFC 6143 §7.2.2](https://datatracker.ietf.org/doc/html/rfc6143#section-7.2.2), which truncates the shared secret to eight bytes. Treat the VNC password as a weak factor: short, unique to this host, and only usable over an encrypted tunnel.

Enable **Remote Login** (SSH) in the same Sharing pane if it is not already on, and scope its **Allow access for** list to the same operator user. Apple documents this toggle in [Allow a remote computer to access your Mac](https://support.apple.com/guide/mac-help/allow-a-remote-computer-to-access-your-mac-mchlp1066/mac).

macOS prompts for Screen Recording and Accessibility consent the first time a remote viewer attaches to the operator account. Those prompts are account-scoped and cannot be dismissed from the command line. Approve them in System Settings → Privacy & Security on first connect.

## How do I connect from Windows or Linux over an SSH tunnel?

Forward port 5900 through the encrypted SSH channel. From Windows (PowerShell, which ships with OpenSSH on Windows 10 and 11) or any Linux terminal:

```bash
ssh -N -L 5901:localhost:5900 operator@YOUR_HOST
```

Leave that terminal running and point the VNC client at `localhost:5901`:

- **Windows:** RealVNC Viewer or TigerVNC. Server `localhost:5901`. The password is the one you set in the Screen Sharing pane.
- **Linux:** `vncviewer localhost:5901` (TigerVNC), or Remmina with the VNC plugin against the same address.

Use the host name and SSH details shown in your Figment account in place of `YOUR_HOST`. If the first handshake fails, check from the Mac side that the listener is bound locally:

```bash
sudo lsof -iTCP:5900 -sTCP:LISTEN
```

You should see `screensharingd` on `*:5900` or `localhost:5900`. If nothing is listening, Screen Sharing is not on, so return to the Sharing pane.

## What should I check when it does not connect?

Work through this checklist, since each item can quietly block the setup above:

- An administrator account, with the user name you used in "Only these users"
- The macOS version, noted from what is shown before purchase
- SSH working, with the host and port from your account
- A way to reach the desktop for the first toggle
- Screen Sharing on, and Remote Management off

Fixes for the common failures:

- **VNC client says authentication failed.** The compatibility password is truncated to eight bytes. Re-set it to an eight-character secret.
- **Black screen or grey background after login.** Connect first from your account's remote desktop and approve Screen Recording for the operator account in Privacy & Security, then relaunch the viewer.
- **Session drops when idle.** Read `man caffeinate`, then run `caffeinate -dims &` inside your SSH session. For a persistent policy, open System Settings → Battery (or Energy Saver on desktop Macs) and disable automatic sleep on power.
- **Reboots.** Screen Sharing comes back as a launch daemon, but SSH tunnels do not. Re-run the `ssh -N -L` command after the Mac restarts.
- **Nothing listening on 5900.** Either Screen Sharing is off or Remote Management is on. Only one of the two can be active at a time.

## Which plans let you turn on Screen Sharing yourself?

Use the [Dedicated M4 Pro 48 GB](/mac-hosting#dedicated-m4-pro) ($349 a month) for current macOS and Xcode. The Apple Silicon Mac VM has SSH and uses the browser desktop. The [Intel Mac VM](/mac-hosting#intel-vm) ($25 a month) runs macOS Sequoia, where Apple lists Xcode 26.0 to 26.3. Check the macOS version shown before purchase. The Intel Mac VM and the Dedicated M4 Pro include SSH and administrator access to your own Mac or VM, which the Sharing pane toggle and the SSH tunnel in this guide need.

**Related guides:**
- [Remote Mac contractor onboarding](/blog/mac-contractor-remote-onboarding)
- [Remote session screen recording on Mac](/blog/mac-remote-session-screen-recording)
- [Self-hosted GitHub Actions runner on Mac](/blog/mac-github-actions-self-hosted-runner)
