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.
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.
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.
see my other post below, but this tutorial is consistent with what ive done for fedora in past https://www.guyrutenberg.com/2022/02/17/unlock-luks-volume-with-a-yubikey/
im using arch, but i suppose with systemd it should be universal
It depends on your bootloader for the decryption piece. for arch its not too bad, your two basic steps with systemd are
So for arch number 1 looks like
and number 2 is putting sd-encrypt as a bootloader (mkinitcpio) module and then updating crypttab
heres a decent tutorial: https://mhdez.com/posts/unlocking-encrypted-linux-with-a-yubikey/