Language
November 21, 20264 min read

Access a Locked Mac Remotely: FileVault and SSH (2026)

Apple silicon Macs running macOS 26 or later let you SSH in at the FileVault screen after a restart and authenticate. You have to turn on Remote Login before it happens. On older setups, run sudo fdesetup authrestart before a planned restart.

Macky puts your Mac's terminal and screen on your iPhone, so it helps with the prep work below.

Which Case Do You Have?

SituationWhat works
Restart or power loss, FileVault on, Apple silicon, macOS 26 or laterSSH in and authenticate (Remote Login must be on)
Planned restart, you still have accesssudo fdesetup authrestart
Power outage or power cycle through a smart outlet or UPSFileVault login is still required
Any restart, FileVault onRemote-control software can't reach the FileVault login screen

The cause is the same in every row. The startup disk is still locked, so Screen Sharing and Remote Management haven't started yet.

Get Past FileVault over SSH (macOS 26 or Later)

Apple added this in macOS 26 for Apple silicon Macs. Do the setup while you still have access.

  • Open System Settings > General > Sharing > Remote Login and turn it on.
  • Check which users are allowed. Remote Login keeps its own list, separate from Screen Sharing and Remote Management.
  • After a restart, connect from another device on the network: ssh yourusername@your-mac-ip.
  • Authenticate with your account password when the pre-login prompt appears.

Once you've authenticated, normal SSH works. Screen Sharing then needs the account password typed in at the login window. For the basics of finding your Mac's address, see How to SSH into a Mac.

One user reported a host key mismatch warning on the first pre-login connection. Another source advises using the same network or your own VPN for this. Both are single reports, so test them on your own Mac.

Stay Reachable From Your iPhone

Macky's Terminal mode opens a real shell on your Mac from your iPhone, so you can run sudo fdesetup authrestart from anywhere.

Macky's Mac app has a keep awake switch and a closed-lid mode. They help the Mac stay awake and reachable, so fewer restarts happen in the first place.

Screen mode shows your Mac's live screen on your iPhone with an on-screen keyboard. Everything is end-to-end encrypted, with no open ports and no VPN to set up.

Macky terminal on iPhone running a command on a Mac
Macky screen mode showing a Mac desktop on iPhone

Restart Without Getting Locked Out

Run this over SSH or Screen Sharing before you restart:

sudo fdesetup authrestart

The Mac restarts without asking for the FileVault password at the next boot. Then resume your remote session and enter the account password at the login window. To add a delay, use sudo fdesetup authrestart -delayminutes 0. The value is in minutes, and 0 restarts immediately.

This covers one restart. Run the command again before each later one.

Turn Off FileVault (Security Tradeoff)

Turning FileVault off in System Settings > Privacy & Security > FileVault lets the Mac boot straight to the normal login window every time. It also removes disk encryption. Only do it if you accept that tradeoff.

FAQ

Can you get past the FileVault screen over SSH?

Yes, on Apple silicon Macs running macOS 26 or later. Turn on Remote Login beforehand. After a restart you can SSH in and authenticate, and the startup drive opens up.

Does Screen Sharing work after a restart with FileVault on?

No. The Mac stays at the FileVault login screen, and remote-control software can't reach it. The startup disk has to be opened with the FileVault password before Screen Sharing and Remote Management start.

Does sudo fdesetup authrestart work every time?

No. It covers one restart only. Run the command again before each later restart.

Do I still need to log in after a power outage?

Yes. A power outage, or a power cycle through a smart outlet or UPS, still requires a FileVault login.

Can I turn off FileVault to avoid this?

Turning FileVault off lets the Mac boot to the normal login window every time. It also removes disk encryption, so it's a security tradeoff.

Try Macky

Connect to your Mac terminal from your iPhone.