Use a security key
Passkeys inside a machine live on a security key OSMates gives it, and each use needs Touch ID or your Mac's password.
Requires a Windows machine, or a Linux machine on the OSMates engine.
Turn the key on
- Shut the machine down.
- Select it, choose Machine > Machine Settings, then click Devices.
- Turn on Security Key. The machine has the key from its next start.
osmates vm set dev --security-key
A clone starts without the key. Turn it on for the clone to give it a new one.
Confirm a sign-in
When a site in the machine asks for the key, the machine's window shows the site's name.


- Check the site and the account. With several accounts, choose one.
- Click Create Passkey or Sign In.
- Confirm with Touch ID or your Mac's password.
To refuse, click Cancel. The sheet closes by itself after 30 seconds.
You confirm each sign-in yourself, and agents and the guest can't. An SSH key made with no-touch-required and a login set up with pam_u2f's userpresence=0 sign without asking.
Turn the key off
Turning the key off erases its passkeys, which you can't undo. Sites can't sign in with them anymore.
- Shut the machine down.
- Select the machine, choose Machine > Machine Settings, then click Devices.
- Turn off Security Key, then click Turn Off and Erase.
osmates vm set dev --no-security-key
A security key reset in Windows or Linux also erases the passkeys, after you confirm on your Mac.
Limits
- The key holds up to 500 passkeys. It has no PIN, because Touch ID or your Mac's password protects it.
- The passkeys stay with the machine on this Mac. A copy of the machine on another Mac can't use them.
- Snapshots don't hold the key, so reverting keeps the passkeys as they are.
- Deleting the machine erases its passkeys.