sudo apt install dropbear-initramfs sudo sed -i 's/#DROPBEAR_OPTIONS=/DROPBEAR_OPTIONS="-I 180 -j -k -p 4000 -s -c cryptroot-unlock"/g' /etc/dropbear/initramfs/dropbear.conf # optional: configure IP if no DHCP avaiable # echo 'IP=192.168.2.123::192.168.2.1:255.255.254.0:my-wks01' >> /etc/initramfs-tools/initramfs.conf sudo ssh-import-id gh:<my_user_id> -o /etc/dropbear/initramfs/authorized_keys sudo update-initramfs -u ssh root@your_workstation_ip -p 4444 # unlock disk unlock-cryptroot
Links
https://www.cyberciti.biz/security/how-to-unlock-luks-using-dropbear-ssh-keys-remotely-in-linux/
https://realtechtalk.com/Howto_Set_Static_IP_on_boot_in_initramfs_for_dropbear_or_other_purposes_NFS_Linux_Debian_Ubuntu_CentOS-2278-articles