ceremcem / unlock-luks-partition

Unlock a LUKS partition via SSH
40 stars 3 forks source link

some issues #8

Open madness85 opened 4 years ago

madness85 commented 4 years ago

Followed the guide here about 10 times and i cant get it working on ubuntu 20.04

ssh: connect to host IP port 21: Connection refused

Some errors here Untitled

ceremcem commented 4 years ago

The dropbear executable can not be found, it is not copied to the initial ramdisk. Did you have dropbear installed on that system before running update-initrd?

madness85 commented 4 years ago

The dropbear executable can not be found, it is not copied to the initial ramdisk. Did you have dropbear installed on that system before running update-initrd?

I think the issue was because i didn't add initramfs to crypttab like so: home /dev/sda5 none luks,initramfs

I followed this tutorial https://www.arminpech.de/2019/12/23/debian-unlock-luks-root-partition-remotely-by-ssh-using-dropbear/

Now when i remove his and try install yours i get /sbin/dropbear not found error.

ceremcem commented 4 years ago

I added initramfs-helpers.

  1. Verify that you have dropbear installed (apt-get install dropbear and not dropbear-initramfs as in the other tutorial)
  2. Verify that you have followed this HOWTO's steps from top to bottom, not mixed with another HOWTO.
  3. After update-initramfs ... step, unpack your initramfs and verify that you have dropbear copied to the initramfs. Mine looks like:
$ sudo find initrd.d/ -name dropbear
initrd.d/etc/dropbear
initrd.d/scripts/init-bottom/dropbear
initrd.d/scripts/init-premount/dropbear
initrd.d/usr/sbin/dropbear