cryptsetup - remote unlocking over ssh

Posted on Fri 03 May 2019 in Linux • 1 min read

Notes

Only vaild for Ubuntu/Debian!

Package(s)

  • dropbear-initramfs

Configuration

ip config

# egrep "(DEVICE|IP)=" /etc/initramfs-tools/initramfs.conf 
DEVICE=enp3s0f0
IP=10.12.13.11::10.12.13.1:255.255.255.0::enp3s0f0:off
IP=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:
   <device>:<autoconf>:<dns0-ip>:<dns1-ip>:<ntp0-ip>

ssh-keys

# cat /etc/dropbear-initramfs/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAA.....

initrd

# update-initramfs -u

Notes

see nfsroot.txt for more