Disk encryption with SSH remote unlocking on Debian 11
I recently got a new virtual private server from the German provider Contabo . This article explains how I changed the installed system to use encrypted storage. I also wanted not to store the decryption secret anywhere on the system. Goals: Encrypt the root partition using cryptsetup and LUKS Passing the decryption secret using SSH WARNING: Following this guide might result in complete and irrecoverable data loss! Before proceeding on a live system, make sure to back up all data to be safe! It’s a good idea to test drive this guide using a virtual machine such as qemu or VirtualBox . The starting setup I am currently running Debian 11 on my virtual machine and the rescue image is also based on Debian 11. My system comes with a simple partitioning scheme, where everything is installed on the root partition. Because my use case is simple, this setup suited me well and so I kept it. If you require a more sophisticated scheme, it’s quite easy to create more logical volumes in ...