# How do you connect to your rented Mac with SSH and Screen Sharing?

> Log in to your RentCloudMac Mac with SSH, then open Screen Sharing through an SSH tunnel from macOS, Windows or Linux. From $92/mo.

- URL: https://rentcloudmac.com/help/how-to-connect-ssh-and-screen-sharing/
- Last updated: 2026-12-03
- Publisher: RentCloudMac (https://rentcloudmac.com)

Two ways in, one account: SSH for the terminal, and the Mac's own Screen Sharing carried inside an SSH tunnel for the desktop.

**Quick answer — How do you connect to a RentCloudMac Mac?**

Copy the SSH command from the Mac's page in the **RentCloudMac** dashboard and run it with your key, or with the temporary password shown there. For the desktop, open a tunnel such as `ssh -N -L 5901:localhost:5900` and point a VNC viewer at port 5901. It works on every plan from $92 a month, paid in Monero.

**In brief**

- **SSH**: the command, the user and the IP address are on the Mac's page in the dashboard.
- **Key or password**: your SSH key if you gave one at checkout; otherwise a temporary password behind "Show", to change at once with `passwd`.
- **Screen Sharing**: macOS's VNC server, reached only through an SSH tunnel to port 5900.
- **Viewers**: the built-in Screen Sharing app on a Mac; a VNC viewer such as RealVNC Viewer on Windows or Linux.
- **Rights**: Full administrator rights: install Xcode, Homebrew, runners and any developer tool, change any setting, reboot at will.

## Which tool do you use from which computer?

*Connection tools for a RentCloudMac Mac by client operating system*

| Your computer | Terminal (SSH) | Desktop (Screen Sharing) |
| --- | --- | --- |
| macOS | Terminal: `ssh user@IP` | `open vnc://localhost:5901` after the tunnel |
| Windows 10 or 11 | PowerShell: built-in `ssh` | RealVNC Viewer or TigerVNC to `localhost:5901` |
| Linux | `ssh` from OpenSSH | Remmina or TigerVNC to `localhost:5901` |
| iPad | An SSH app with port forwarding | A VNC app that supports SSH tunnels |

## How do you log in over SSH the first time?

**Copy the "SSH command" from the Mac's page and run it in a terminal; accept the host fingerprint once.** If you pasted a public key at checkout, the matching private key on your computer opens the session. If you left the key empty, click "Show" on the temporary password card, copy it, log in, and change it at once with `passwd`: the one shown in the dashboard then stops working.

*First login*

```bash
ssh -i ~/.ssh/id_ed25519 USER@MAC_IP     # with the key given at checkout
ssh USER@MAC_IP                           # with the temporary password
passwd                                    # change the temporary password
sw_vers && sysctl -n machdep.cpu.brand_string   # check macOS and the chip
```

## How do you open the Mac's desktop with Screen Sharing?

**Open an SSH tunnel from a local port to port 5900 on the Mac, then connect a VNC viewer to the local port.** Port 5900 is not meant to be reached directly from the internet; the tunnel carries the session inside SSH's encryption. Sign in to the Screen Sharing prompt with the macOS user name and its password.

*Tunnel and viewer*

```bash
ssh -N -L 5901:localhost:5900 USER@MAC_IP
# then, on a Mac:
open vnc://localhost:5901
# on Windows or Linux: connect your VNC viewer to localhost:5901
```

## What if you ordered with a key and have no account password?

**Screen Sharing asks for the macOS account password, which an SSH key does not provide, so ask support in a ticket before you need the desktop.** Terminal work, Xcode builds, `simctl` and CI runners need only SSH. The desktop matters for Xcode's signing screens, the Simulator window and Safari by hand. Detailed tunnel options, including keeping it open, are in [how to use Screen Sharing over SSH](https://rentcloudmac.com/guides/how-to-use-screen-sharing-over-ssh/ "How to use Screen Sharing over SSH").

## How do Windows users connect?

**Windows 10 and 11 include an OpenSSH client, so the same `ssh` and `ssh -L` commands work in PowerShell.** Install a VNC viewer that can sign in to macOS Screen Sharing; RealVNC Viewer is a common choice. The step-by-step version, prompt by prompt, is [how to connect to a cloud Mac from Windows](https://rentcloudmac.com/guides/how-to-connect-to-a-cloud-mac-from-windows/ "How to connect to a cloud Mac from Windows").

## Why is the connection through SSH only?

**One encrypted door is easier to protect than several open ports.** Network of each Mac: One dedicated public IPv4 address per Mac and a 1 Gbit/s port; traffic is not metered. RentCloudMac's survey of 3 December 2026 noted that MacinCloud sells an RDP add-on for its Macs; RentCloudMac keeps to SSH and Screen Sharing. After the first login, harden the account with [how to secure a cloud Mac](https://rentcloudmac.com/guides/how-to-secure-a-cloud-mac/ "How to secure a cloud Mac").

## Questions about connecting

### The SSH command says "REMOTE HOST IDENTIFICATION HAS CHANGED". Why?

The Mac was reinstalled and has new host keys. Remove the old entry with `ssh-keygen -R MAC_IP`, then connect again and accept the new fingerprint.

### Can I add another SSH key later?

Yes. Append the public key to `~/.ssh/authorized_keys` of the user on the Mac. Several keys can sit in that file, one per line.

### Is the screen slow over Screen Sharing?

Screen Sharing sends images of the screen, so it depends on the distance to Amsterdam or Dallas and your connection. Lower the colour depth in the viewer, and keep builds and tests in SSH.

### Can I use Remote Desktop (RDP)?

No. macOS has no RDP server; RentCloudMac gives SSH and macOS Screen Sharing.

### My connection fails completely. What next?

Follow the checks in [Mac unreachable](https://rentcloudmac.com/help/mac-unreachable/ "Mac unreachable") before opening a ticket.

**Verdict**

- SSH first: copy the command from the dashboard, use your key or the temporary password, then `passwd`.
- Desktop second: tunnel port 5900 through SSH and connect a VNC viewer to the local port.
- Keep everything inside SSH and nothing else needs to be exposed; plans are on [pricing](https://rentcloudmac.com/pricing/ "RentCloudMac pricing").

**Need a Mac to connect to?** Compile is the smallest Mac mini, with the same SSH and Screen Sharing access. [Rent Compile — $92/mo](https://rentcloudmac.com/app/checkout/?plan=compile&from=help-how-to-connect-ssh-and-screen-sharing&lang=en)

## Sources

1. [Share the screen of another Mac](https://support.apple.com/guide/mac-help/share-the-screen-of-another-mac-mh14066/mac) — Apple
2. [OpenSSH for Windows overview](https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_overview) — Microsoft
3. [MacinCloud dedicated servers](https://www.macincloud.com/pages/dedicated.html) — MacinCloud (read 2026-11-17)

---

RentCloudMac: RentCloudMac rents whole Apple Mac minis (M4 and M4 Pro) in data centres for building, signing and testing iOS and macOS apps, reached over SSH and Screen Sharing. Five Macs cost $92 to $299 a month, paid in Monero, Bitcoin, USDT or 4 other coins, with no KYC and delivery within 24 hours.
