LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-09-2022, 06:02 PM   #1
knabt
LQ Newbie
 
Registered: Mar 2022
Posts: 1

Rep: Reputation: 0
Encrypted system keyfile unlock with remote unlock


Hello all,

First post here, I apologize if this is not the right place.

I have an Arch system setup with an encrypted btrfs filesystem using subvolumes for /, /home and a swapfile. /boot is unencrypted. I am able to get the system to automatically unlock upon boot using a keyfile on a usb drive and the sd-encrypted hook.

I can also use the systemd-tool hook from mkinitcpio-systemd-tool to remotely unlock/un-encrypt the filesystem via ssh at boot.

However, what I would really like is to use the keyfile on the usb drive to boot, if present, and if not fallback to waiting for the encryption password via ssh. I'm not sure if this is even possible, and if it is possible not sure how set it up. Does anyone know if this is doable or have any pointers?

Thanks, apologies again if I'm in the wrong place.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyscript for ubuntu to unlock a luks partition with a keyfile and fallback to a passphrase LBuhler Ubuntu 0 04-22-2020 03:44 PM
Unlock LUKS encrypted root system with keyfile on USB device Märk Owen Linux - Security 7 02-10-2017 12:57 PM
unlocking encrypted root with keyfile on sdcard/mmc possible? saivinoba Slackware 1 12-20-2013 05:45 PM
[SOLVED] Can't unlock LUKS volume with a keyfile during boot natharran Slackware 3 02-27-2013 02:00 PM
LXer: Automatically Unlock LUKS Encrypted Drives With A Keyfile LXer Syndicated Linux News 0 07-09-2008 03:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration