Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Genkernel - cannot remote unlock luks root (header + gpg)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
akiraowen
n00b
n00b


Joined: 25 Mar 2024
Posts: 1

PostPosted: Mon Mar 25, 2024 11:21 am    Post subject: Genkernel - cannot remote unlock luks root (header + gpg) Reply with quote

Hey everyone,

So I've built a Gentoo system that has a luks encrypted root, detached header and gpg encrypted keyfile, dropbear sshd remote access + public key (all via Genkernel).
Now this system is tested and boots perfectly fine locally: I just enter the passphrase via the keyboard at the machine and its all good to continue booting.

I can remote ssh into the rescue shell, meanwhile its waiting for the passphrase on the local display.

The problem arises at this point, if I run the required "unlock_luks root" script it fails not knowing there is a luks device available ... it seems to be missing the "--header /mnt/header/root.header.img" parameter.
So instead I type out the full line into the rescue shell like what genkernel outputs on the local display (the one that works when entering the passphrase locally):
Code:
gpg --logger-file /dev/null --decrypt /mnt/key/key.luks.gpg | cryptsetup --header /mnt/header/root.header.img --key-file - open /dev/mmcblk0 root


and what happens is that the remote shell appears to wait (but I can type characters that appear on the screen) and the local display re-asks for the passphrase ??

So the question is how I'm I suppose to unlock a luks + detached header + gpg enc key?
Why does keyboard input only get taken from the local machine and not the rescue shell, can I redirect input from the rescue shell into the local machine to enter the passphrase??


Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum