has anyone had any luck encrypting their root partition and unlocking it with a yubikey on boot? im tired of typing in the passphrase on my laptop on boot.
Food for thought, but if you’re computer has a TPM you could also use clevis-luks to automatically unlock your root partition at boot.
the issue there, im concerned with folks stealing my whole laptop, not the ssd inside
Well unless you have automatic login enabled, you’d still have to log into your account to access the data on your harddisk, and by using the TPM, if they’re trying to boot into a live environment to bypass your login it won’t decrypt the hard-drive.
fair! i have a very weak password to login though haha. i should probably get my yubikey to log in with too, come to think of it…
Lol valid point, and in my opinion the Yubikey would be better suited for logging in vs. decrypting your hard drive. You could even set it up so that when you remove your yubikey it automatically locks your screen
You can just use any USB drive with a couple of kernel parameters. Don’t see what YubiKey is bringing to the table here. If your use case is good with that you can also install pam_usb and not have to type sudo passwords either. Remove the key and (hard if needed) power off and you’re back to a normal secure system. Been doing it for years myself.
Note on that guide: using
crypttab.initramfsis deprecated. Use the standardcrypttabwithx-initrd.attach-option instead (although I think it’s not removed yet and still throwing a warning telling you exactly that).
My cats kept triggering the touch sensor on the yubikey I used to have and I marvel that other people w cats don’t have this problem 😝
You can disable the default otp behavior if all you’re doing is challenge-response
yeah its nice! if your device has a tpm2 device you can decrypt with that too, even easier
Any tutorials?
what distro
Fedora, sometimes Mint.
im using arch, but i suppose with systemd it should be universal




