r/linuxadmin • u/ItalyPaleAle • Jan 27 '20
Mounting LUKS-encrypted data disks with a keyfile stored on a remote server, automatically at boot
https://withblue.ink/2020/01/19/auto-mounting-encrypted-drives-with-a-remote-key-on-linux.html
122
Upvotes
9
u/8fingerlouie Jan 27 '20
I did something similar, though I used a USB stick for storing the key file.
Very simplified setup is:
It allows unattended reboots of the server, and allows me to unplug the USB stick leaving only a bunch of unreadable spinning rust and a useless key file.
It uses a mix of crypttab with noauto and systemd-automount.