Jump to content

Remote disk unlocking: Difference between revisions

Properly escape greater than signs
(Workaround broken >> special characters being displayed as >>)
(Properly escape greater than signs)
 
Line 1: Line 1:
If you want to unlock your computer remotely via SSH or even through Tor, and you are facing the probllem, that you can’t reach your computer before your computer is unlocked. Tor will help you to reach your computer, even during the boot process.
If you want to unlock your computer remotely via SSH or even through Tor, and you are facing the problem, that you can’t reach your computer before your computer is unlocked. Tor will help you to reach your computer, even during the boot process.


== Setup ==
== Setup ==
Line 9: Line 9:
</syntaxhighlight>
</syntaxhighlight>


Enable SSH daemon in initrd≥
Enable SSH daemon in initrd


{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
Line 26: Line 26:
     postCommands = ''
     postCommands = ''
       # Automatically ask for the password on SSH login
       # Automatically ask for the password on SSH login
       echo 'cryptsetup-askpass || echo "Unlock was successful; exiting SSH session" && exit 1' \
       echo 'cryptsetup-askpass || echo "Unlock was successful; exiting SSH session" && exit 1'</nowiki> >> <nowiki>/root/.profile
        | tee /root/.profile
     '';
     '';
   };
   };
3

edits