This is the script I use to remotely unlock an encrypted root filesystem on my Ubuntu machines:
https://github.com/rhansen/unlock-cryptroot It should work on Debian, though I have not tested it. It does not require any modifications to the target system's initramfs, and works even if plymouth is installed. -Richard