# How do you secure a rented cloud Mac?

> Harden a rented Mac mini: change the temporary password, keys only for SSH, firewall on, updates and signing keys. Macs from $92/month.

- URL: https://rentcloudmac.com/guides/how-to-secure-a-cloud-mac/
- Last updated: 2026-12-03
- Publisher: RentCloudMac (https://rentcloudmac.com)

A Mac on a public IPv4 is reachable by anyone who tries. Twenty minutes of hardening on the first day removes the usual risks without breaking SSH, Screen Sharing or CI.

**Quick answer — How do you secure a cloud Mac?**

Change the temporary password with `passwd`, log in with an SSH key, turn password login off in /etc/ssh/sshd_config.d/, enable the application firewall and keep macOS updated. **RentCloudMac** gives full administrator rights on Macs from $92 a month, paid in Monero or Bitcoin, so each step below is yours to apply.

**In brief**

- **Password**: change the temporary one at first login; it is shown in the dashboard until then.
- **Keys only**: add your public key to `~/.ssh/authorized_keys`, then disable password and keyboard-interactive login.
- **Firewall**: `socketfilterfw --setglobalstate on`; SSH keeps working.
- **Screen Sharing**: only through an SSH tunnel, never on a public port.
- **FileVault**: think twice on a remote Mac; after a reboot it waits for a password at a pre-boot screen you cannot reach over SSH.

## Which steps harden the Mac on day one?

1. **Change the password** — Log in with the temporary password from the dashboard and run passwd. Use a long, unique one; Screen Sharing uses it too.
2. **Install your key** — From your computer, ssh-copy-id USER@MAC_IP, or append the .pub line to ~/.ssh/authorized_keys with chmod 600.
3. **Turn password login off** — Create /etc/ssh/sshd_config.d/100-keys-only.conf with the two lines below, test in a second session, then restart sshd.
4. **Enable the firewall** — Turn on the application firewall; stealth mode makes the Mac ignore pings.
5. **Check for updates** — softwareupdate -l lists pending updates; install security updates at a time you can afford a reboot.
6. **Separate the CI user** — Run runners under their own standard user, not the administrator account you log in with.

*Keys only, firewall, updates*

```bash
passwd
chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys

sudo tee /etc/ssh/sshd_config.d/100-keys-only.conf <<'EOF'
PasswordAuthentication no
KbdInteractiveAuthentication no
EOF
sudo sshd -t && sudo launchctl kickstart -k system/com.openssh.sshd

sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate on
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setstealthmode on
softwareupdate -l
```

## Why test in a second session before restarting sshd?

**Because a typo in the SSH configuration can lock you out of a Mac you cannot touch.** Keep the current session open, run `sudo sshd -t` to validate the files, restart the service, then open a new connection with your key. Only close the first session when the second one works. If you do lock yourself out, the dashboard offers a reinstall, which erases the disk; support can also help, as described in [Mac unreachable](https://rentcloudmac.com/help/mac-unreachable/ "Mac unreachable: what to check").

macOS reads files in `/etc/ssh/sshd_config.d/` before the main file, so a dedicated file survives system updates better than editing `sshd_config` itself.

## Which risks does each measure cover?

*Hardening measures for a rented Mac and the risk each one reduces*

| Measure | Risk reduced | Cost to you |
| --- | --- | --- |
| New password at first login | Temporary password seen by others | One command |
| SSH keys only | Password guessing from the internet | Keep your private key safe |
| Application firewall on | Unexpected listening services | May prompt for new apps |
| Screen Sharing through SSH only | VNC brute force | One tunnel command |
| Separate CI user | A job touching your files or keychain | One extra user |
| Signing keys in a dedicated keychain | Key misuse by other processes | Unlock it in scripts |
| Regular updates | Known macOS vulnerabilities | Planned reboots |

## Should you turn on FileVault on a remote Mac?

**Only if you accept that every unplanned reboot leaves the Mac waiting for its password at a screen SSH cannot reach.** With FileVault on, `sudo fdesetup authrestart` performs a planned reboot that unlocks the disk once, but a power cut or crash still stops at the unlock screen. Many teams skip FileVault on a rented Mac and instead keep secrets out of the disk: API keys in environment variables of the CI system, certificates in an encrypted match repository, and nothing that is not also elsewhere.

When a rental ends and is not renewed, the Mac is kept 3 days, then its disk is erased and macOS reinstalled before anyone else rents it.

## What does RentCloudMac never ask for?

**The team never asks for an Apple Account password, a two-factor code, a signing certificate's private key or your account number.** Anyone asking for these is not RentCloudMac. RentCloudMac never needs the customer's Apple Account; signing in to one on the Mac, for Xcode or App Store Connect, is the customer's choice. RentCloudMac checked 7 cloud Mac sellers on 3 December 2026 and none took crypto; paying in Monero also means no card details exist to leak. Runner-specific advice is in [GitHub Actions runner on a Mac](https://rentcloudmac.com/guides/how-to-set-up-github-actions-runner-on-mac/ "How to set up a GitHub Actions runner on a Mac"), and the tunnel in [Screen Sharing over SSH](https://rentcloudmac.com/guides/how-to-use-screen-sharing-over-ssh/ "How to use Screen Sharing over SSH").

## What questions come up about securing a cloud Mac?

### Will disabling passwords break Screen Sharing?

No. Screen Sharing still asks for the macOS account password inside the VNC client; only SSH stops accepting passwords.

### Should I change the SSH port?

It reduces log noise but adds no real protection once passwords are off. Keys only is the measure that matters.

### Can automatic updates reboot the Mac during a build?

They can. Leave automatic macOS installs off and run softwareupdate yourself, or choose the Managed Mac option, which applies updates for you.

### Does RentCloudMac keep a copy of my files?

No backups are included: keep source code in a remote repository and copy signing assets and builds off the Mac.

### How do I lock down a CI runner?

Run it under a standard user, never on public repositories, and give it read-only access to certificates.

**Verdict**

- New password, keys only, firewall on, Screen Sharing through SSH: four steps cover most of the risk.
- Validate sshd changes with `sshd -t` and keep a session open while you test.
- Treat FileVault carefully on a remote Mac. Plans and the Managed Mac option are on [pricing](https://rentcloudmac.com/pricing/ "RentCloudMac pricing").

**A Mac that is yours alone** Whole Mac mini, administrator rights, paid in crypto with no KYC. [Rent Ship — $139/mo](https://rentcloudmac.com/app/checkout/?plan=ship&from=guides-how-to-secure-a-cloud-mac&lang=en)

## Sources

1. [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) — Apple
2. [Block connections to your Mac with a firewall](https://support.apple.com/guide/mac-help/block-connections-to-your-mac-with-a-firewall-mh34041/mac) — Apple
3. [sshd_config(5) manual](https://man.openbsd.org/sshd_config) — OpenBSD

---

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.
