Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Are there any standard solutions to rebooting an encrypted system remotely without requiring a password on the next boot?

The system in question is an Ubuntu encrypted with LUKS root partition and an unencrypted boot partition.

The only way I can imagine is to add a randomly generated second key that is based on a file resting on the boot partition and removing it with a start script on system boot.

Would the above approach work? Or is there a default option that does not require a manual approach?

The only security implication I can think of is that in case the system does fail the boot before starting the first services.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You could setup an initrd with a minimal sshd in it (dropbear comes to mind), and then connect to it and input the password manually. Or you could look into Mandos. Keep in mind that if someone has physical access to your server, and can replace the boot code without you noticing, then you are game over no matter what

share|improve this answer
    
I like the SSH solution, although that probably requires a lot of tinkering. Mandos is not an option for my setup, since I just have one machine at home. However, I'm not home most of the time and updates, etc. (i.e. me screwing things up =) require a restart at those times as well. –  Elmar Weber Jun 14 '12 at 11:51
    
Ah, look here, adding ssh to my queries I'm getting results of people having the same problem: howtoforge.com/… –  Elmar Weber Jun 14 '12 at 11:53
    
That howto also kindly explains the two main possible attacks. Looking at the comments it looks like Ubuntu does something like that by default since 10.04? –  miniBill Jun 14 '12 at 15:04
    
Yes, Ubuntu 11 + 12 has most of the stuff integrated, I just tried it successfully with the following instructions: thomas-krenn.com/de/wiki/… They are in German but should be understandable with Google Translate or sth. like that. The described problems and bugs in the scripts also apply to the newest (12) Ubuntu version. –  Elmar Weber Jul 5 '12 at 0:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.