I am trying to decrypt a fully encrypted system using LUKS over SSH. I followed stinky parkia's guide to unlocking device over ssh.
However, the password is not working. I am able to reach the prompt to enter the passphrase but it's simply not accepting the correct password. Error: cryptsetup: cryptsetup failed, bad password or options?,
I type the same password with a keyboard attached directed with the Pi4 and it works.
I little more research showed initramfs option is required in crypttab.
Updated crypttab:
# <target name> <source device> <key file> <options> sdcard /dev/mmcblk0p2 none luks,initramfs However, the password is still not working over SSH.
Any hints on what I am possibly doing wrong?
Details:
- uname -a: Linux raspi 6.1.21-v8+ #1642 SMP PREEMPT aarch64
- OS: Raspberry OS lite
- cryptsetup --version: cryptsetup 2.3.7
Update #1: Found similar instructions on a linuxconfig.org blog, same problem.
Update #2: I thought the keyboard layout is different, but I typed the password in plain text and all characters are as expected.
dmesg.dmesgdoes not have any cryptsetup related logs. Do I need to enable the logs somewhere?