I've tried to set up remote unlocking following online guides like these. First I tried it on ubuntu 18.04, I am trying now in Debian buster. In both cases I was able to set up dropbear to give me access, but when problems arose that were difficult to debug, I disabled forcing the cryptroot-unlock binary on the ssh session and fall into the Busybox Ash shell.

Once I'm inside the busybox shell via Dropbear, I noticed that the examples all show cryptsetup command to be available from the busybox shell, but for me this wasn't the case in both cases cryptsetup command not found. So I'm figuring I need to install cryptsetup into the initramfs somehow, although I already installed cryptsetup-initramfs (version 2:2.1.0-5+deb10u2) and I'm not sure what else to do here

1 Answer 1


Use the command cryptroot-unlock from the shell, not cryptsetup.

Here is an example of a one-line remote login to enter the decrypt password:

ssh -ti /path/to/private_key_file -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no [email protected] cryptroot-unlock

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .