Skip to content
RentCloudMac

How do you secure a rented cloud Mac?

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.

Updated , by the RentCloudMac team

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
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.

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
MeasureRisk reducedCost to you
New password at first loginTemporary password seen by othersOne command
SSH keys onlyPassword guessing from the internetKeep your private key safe
Application firewall onUnexpected listening servicesMay prompt for new apps
Screen Sharing through SSH onlyVNC brute forceOne tunnel command
Separate CI userA job touching your files or keychainOne extra user
Signing keys in a dedicated keychainKey misuse by other processesUnlock it in scripts
Regular updatesKnown macOS vulnerabilitiesPlanned 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, and the tunnel in 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.

A Mac that is yours alone

Whole Mac mini, administrator rights, paid in crypto with no KYC.

Sources (3)
  1. Allow a remote computer to access your Mac — Apple
  2. Block connections to your Mac with a firewall — Apple
  3. sshd_config(5) manual — OpenBSD

Read next

from $92 a month

Rent a Mac