Remote solution to decrypt disk at boot - eviltoast

Hi there ! I have a little box at home, hosting some little services for personal use under freebsd with a full disk encryption (geli). I’m never at home and long power outage often occurs so I always need to come back home to type my passphrase to decrypt the disk.

I was searching this week a solution to do it remotely and found the “poor-guy-kvm” solutions turning a Raspberry like board (beaglebone black in my case) in a hid keyboard. It works fine once the computer has booted but once reboot when the passphrase is asked before it loads the loader menu, nothing. When I plug an ordinary USB keyboard I can type my passphrase so USB module is loaded.

Am I missing something ? Am I trying something impossible ?

(I could’ve asked on freebsd forum but… Have to suscribe, presentation, etc… Long journey)

  • SpaceNoodle@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    11 months ago

    I’m in the market for a similar solution. Is the BeagleBone being powered via USB? If so, it might be trying to pull more current than the USB stack will allow at that point. Can you debug the board while it’s in the non-working state? Also, does it present as a single HID device?

    • Jean-Mich Much@jlai.luOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 months ago

      Yes the beaglebone black is currently powered by USB. Unfortunately I am not able to debug the board while it’s not working due to my lack of skill… I don’t know how to do… Maybe I can read dmesg on the bbb for a message stating this nonworking state while it asks for passphrase on the PC for a first step… Yes once it’s booted, freebsd see it as a single hid device, just a hid device