CoreKey Studio / Guides

Unlock FileVault on a Mac from your iPhone (Shortcuts only, no extra app)

Last updated: November 21, 2026 · CoreKey Studio LLC

When a Mac you left at home or in the office restarts, it stops at the FileVault screen. In that state, Screen Sharing and remote desktop apps cannot connect. Since macOS 26, the disk can be unlocked over SSH. This guide shows how to do it with nothing but the Shortcuts app that comes with the iPhone, based on a test we ran ourselves.

In short

How it works

A Mac with FileVault on keeps its data volume locked after a restart. On macOS 26 or later with Remote Login turned on, the Mac still accepts SSH connections in that state. Send the login password over SSH and the volume unlocks.

Once it unlocks, the Mac closes the SSH connection and continues to the login window. From there, remote desktop apps connect as usual (we confirmed this with Jump Desktop).

What we tested

MacMac mini (Apple silicon), macOS 27.2, on Wi-Fi
iPhoneiOS 27, built-in Shortcuts app
NetworkiPhone and Mac on the same home Wi-Fi, and iPhone on mobile data only, reaching the Mac through the way in at home
VariantsPassword stored in the field, and Ask Each Time (both unlocked the Mac from the FileVault screen)
DateNovember 21, 2026

Apple says this works on Apple silicon Macs running macOS 26 or later. We tested on macOS 27 and have not tested on macOS 26.

Step 1: Prepare the Mac

  1. Turn on Remote Login.
    System Settings → General → Sharing → turn on Remote Login.
  2. Note the user name and the Mac’s address on your home network.
    Run these two lines in Terminal. The first prints the user name. The second prints an address such as 192.168.x.x.
    id -un
    ipconfig getifaddr en0; ipconfig getifaddr en1
  3. Note the Mac’s host key fingerprints.
    The iPhone will later ask whether the machine it reached is really your Mac. These are the values to compare. Run this in Terminal and keep the output as a note or a photo.
    for f in /etc/ssh/ssh_host_*_key.pub; do ssh-keygen -l -E md5 -f "$f"; done

The home address can change when the router hands out addresses again. Reserving a fixed address for the Mac in the router settings avoids that.

Step 2: Prepare the iPhone

Shortcuts needs permission to use SSH. The permission is off by default.

  1. Open Settings → Apps → Shortcuts → Advanced.
  2. Turn on Allow Running Scripts.

You can also go straight to Step 3. If the permission is off, the shortcut editor says “This action cannot be run because scripting actions are disabled.” Tap Open Settings below that message to reach the same page.

Step 3: Build the shortcut

  1. Open the Shortcuts app and tap “+” at the top right.
  2. On iOS 27, a screen that asks you to describe the shortcut appears first. It is not needed here. Tap Edit at the top right.
  3. Type “SSH” in the search field at the bottom and choose Run Script Over SSH.
  4. Fill in the fields.
    Scripttrue (a command that does nothing; the connection itself is what unlocks the Mac)
    HostThe home address you noted in Step 1
    Port22 (already filled in)
    UserThe user name you noted in Step 1
    AuthenticationPassword
    PasswordWe recommend Ask Each Time, described just below. You can also type your Mac login password here and keep it stored.
    InputLeave as it is
  5. Give the shortcut a clear name and close the editor.

Recommended: keep the password off the iPhone

Instead of a fixed password, the Password field can be set to Ask Each Time. The shortcut then stores no password and asks for it on every run.

  1. Tap the Password field. A bar of choices appears just below it.
  2. Swipe the bar to the left and tap Ask Each Time at the far end.
  3. When you run the shortcut, a password prompt appears. Enter your Mac login password and tap Done.

The prompt hides what you type. Our own first attempts were rejected because of input mistakes, so enter it slowly, one character at a time.

A Mac stopped at the FileVault screen unlocked with this variant and also with the password stored in the field. We tried both.

Step 4: Try it once at home

Try it at home before you rely on it elsewhere. There is a one-time confirmation on the first run, and it is safer to answer it while you are next to the Mac.

  1. Restart the Mac normally and wait until it stops at the password screen.
  2. Wait about 30 seconds. Right after the FileVault screen appears, the Mac is not on the network yet. In three tests, our Mac mini joined Wi-Fi 15 to 16 seconds after startup every time.
  3. Run the shortcut on the iPhone. If you chose Ask Each Time, enter the password now.
  4. The first time, an “Unknown Host” message appears and shows a fingerprint. If it matches one of the lines you noted in Step 1, tap Connect. If it does not match, tap Cancel.
  5. The Mac appears to start up again and then shows the login window. The disk is now unlocked.

The iPhone shows a failure message even when it worked. When the disk unlocks, the Mac closes the connection, so Shortcuts reports “SSH Password Authentication Failed.” If the Mac has moved on to the login window, it worked. For when you cannot see the screen, see the check below.

Using it away from home

The steps above assume the iPhone is on the same network as the Mac. To use the shortcut from elsewhere, you need a separate way into your home network.

One thing to keep in mind: while the Mac waits at the FileVault screen, a VPN app installed on that Mac is not running. You need another device at home that is always on to act as the way in.

We tested this with an Android phone left at home as a Tailscale subnet router. With Wi-Fi turned off on the iPhone, so that it was on mobile data only, running the shortcut unlocked a Mac stopped at the FileVault screen. The shortcut is the same one used at home, and the Host field still holds the Mac’s home address.

Checking that it worked when you cannot see the screen

Away from home you cannot see the Mac’s screen, and the shortcut shows a failure message even when it worked. This is the order we used to check.

  1. After the Mac restarts, wait about a minute to be safe.
  2. Run the shortcut. It says “SSH Password Authentication Failed” even when the disk unlocked.
  3. Wait about 30 seconds and run it again. If it finishes without an error this time, the disk is unlocked. Once unlocked, the Mac accepts the connection as ordinary SSH.
  4. Connect with your remote desktop app and log in at the login window.

Things to be careful about

If it does not work

What happensWhat to check
It cannot connectWas it right after the restart? Wait 30 seconds and try again. Also check that the iPhone is on your home Wi-Fi and that the Mac’s address has not changed.
It says scripting actions are disabledAllow Running Scripts from Step 2 is off.
The fingerprint differs from your noteThe shortcut reached a different machine. Do not connect. Check the address in the Host field.
It says “SSH Password Authentication Failed”Look at the Mac first. If it has moved on to the login window, it worked and you can ignore the message. If it is still at the FileVault screen, the password did not match. Enter it again, one character at a time.
The Mac stays at the FileVault screenCheck that Remote Login is on, and that the user name and password are correct.

For a planned restart, you can skip the FileVault screen

When you restart the Mac yourself, there is a way to skip the FileVault screen once. Run this in Terminal on the Mac. It asks for your password, restarts, and goes straight to the login window with the disk unlocked.

sudo fdesetup authrestart

It does not help with restarts you did not plan, such as a power cut or an automatic update. The shortcut on this page is for those.

References

This guide was written by CoreKey Studio LLC from tests on our own devices. If you find a mistake, please tell us at info@tomesaki.com.