> ## Documentation Index
> Fetch the complete documentation index at: https://docs.macstadium.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Using FileVault on a hosted Mac

> Turn on FileVault on a MacStadium hosted Apple silicon Mac and recover from a reboot over SSH, without a trip to the data center.

FileVault encrypts the startup disk on a Mac. On a hosted Mac that you administer entirely over the network, with no physical console, the thing to plan for before you turn it on is recovery: after a reboot, the Mac stops at the FileVault unlock screen until someone unlocks it. This page covers how that works on a hosted Apple silicon Mac and how to recover without a trip to the data center.

> [!NOTE]
>
> This applies to Apple silicon Macs. The remote unlock described here works the same on macOS 26 and macOS 27.

## FileVault and encryption at rest

On Apple silicon, the internal storage is always encrypted in hardware by the Secure Enclave, whether or not FileVault is on. Depending on how your control is written, that hardware encryption may already satisfy an encryption-at-rest requirement. FileVault adds a layer on top: it binds the decryption key to an account password and gives you a recovery key. Decide whether you need that extra protection before you turn FileVault on, because it changes how the Mac recovers from a reboot.

## What to know first

A hosted Mac has no out-of-band hardware console. There's no KVM or IPMI, and Mac minis have no baseboard management controller. Your remote access is SSH and software Screen Sharing, and Screen Sharing only works after macOS has booted and the disk is unlocked. The portal's Launch VNC can't reach the FileVault unlock screen, because that screen runs before Screen Sharing loads. So on a hosted Mac, SSH is your path to a Mac that's sitting at the FileVault unlock screen.

## Before you enable FileVault

**1. Turn on Remote Login**

FileVault recovery over SSH only works if Remote Login (SSH) is on and the host has a live network connection.

**2. Confirm the administrator account can unlock FileVault**

Make sure the administrator account is enabled for FileVault, and that whoever would perform a recovery knows its password. The pre-boot unlock takes a password, not an SSH key.

**3. Escrow your recovery key**

Keep the FileVault recovery key somewhere you can reach it without the Mac. It's the fallback if the SSH unlock path is ever unavailable.

**4. Run one controlled test**

Turn FileVault on, do a planned reboot, and confirm you can unlock over SSH before you rely on it in production.

## Recover after a reboot

With FileVault on, a Mac that restarts stops at the FileVault unlock screen until someone unlocks it. This includes a Hard Reboot from the portal. On Apple silicon, you can unlock it over SSH:

**1. Connect to the locked Mac over SSH**

While the Mac sits at the unlock screen, connect with an administrator account:

```bash theme={null}
ssh <ADMIN_USERNAME>@<IP>
```

**2. Enter the account password**

Enter the password of a FileVault-enabled local account, such as the administrator account. The disk unlocks, the connection closes, and macOS finishes starting up.

**3. Reconnect once it's up**

Wait a minute, then connect again as usual.

This is self-service, with no MacStadium intervention, as long as Remote Login is on and the network is up.

> [!WARNING]
>
> The pre-boot unlock accepts a password only, not an SSH key, because your keys live on the still-encrypted disk and aren't available yet. This is true even if you turned off password login with `PasswordAuthentication no`. Make sure the administrator password is known to whoever would unlock the Mac. Key login works again once the Mac has finished starting up.

The recovery key is entered at the graphical unlock screen, not over SSH, so it's a console-only fallback. If the SSH unlock path is ever unavailable, for example a network problem at the host, recovery needs MacStadium to enter the password or recovery key at the physical console. [Open a ticket](https://docs.macstadium.com/macstadium/support/service-desk-guide.md#open-a-ticket-for-a-specific-mac), which is handled through the [Remote Hands service](https://docs.macstadium.com/macstadium/support/remote-hands-service.md). Keep your recovery key escrowed so you can provide it.

## Reboots you plan

For a reboot you start yourself, use an authenticated restart so the Mac unlocks itself once on the next boot and doesn't stop at the unlock screen:

```bash theme={null}
sudo fdesetup authrestart
```

For a reboot triggered on MacStadium's side, or by an unplanned event such as a power loss, a hardware fault, or a kernel panic, `authrestart` doesn't apply, and the SSH unlock in [Recover after a reboot](#recover-after-a-reboot) is your path back in.

With Remote Login on and the network up, an unplanned reboot doesn't leave the host stranded: you can SSH in and unlock it yourself. The console and recovery-key path is the fallback for when SSH can't reach the Mac.

## Related

* [What should I do if my Mac was compromised?](https://docs.macstadium.com/iaas/iaas-faqs/what-should-i-do-if-my-mac-was-compromised.md)
* [How do I reset the admin password on my Mac?](https://docs.macstadium.com/iaas/iaas-faqs/how-do-i-reset-the-admin-password-on-my-mac.md)
* [Connecting to your Mac for the first time](https://docs.macstadium.com/iaas/bare-metal-macs/connecting-to-your-mac-for-the-first-time.md)
* Apple: [Intro to FileVault](https://support.apple.com/guide/deployment/intro-to-filevault-dep82064ec40/web)


## Related topics

- [Getting started: MSDC-hosted](https://docs.macstadium.com/remote-desktop-vdi/getting-started/msdc-hosted.md)
- [Self-hosted MacStadium VDI deployment guide](https://docs.macstadium.com/remote-desktop-vdi/getting-started/self-hosted.md)
- [Cloud Access troubleshooting](https://docs.macstadium.com/remote-desktop-vdi/cloud-access-legacy/cloud-access-troubleshooting.md)
- [Can't log in to your Mac](https://docs.macstadium.com/iaas/bare-metal-macs/cant-log-in-to-your-mac.md)
- [MacStadium VDI customer environment tips](https://docs.macstadium.com/remote-desktop-vdi/configuration/customer-environment-tips.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.