Last active
June 24, 2017 08:44
-
-
Save spvkgn/a5412912ecb731af544a49b0f85acf2c to your computer and use it in GitHub Desktop.
Add random keyfile to existing LUKS device
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dd if=/dev/urandom of=/root/keyfile bs=1024 count=4 | |
sudo chmod 0400 /root/keyfile | |
sudo cryptsetup luksAddKey /dev/sdX /root/keyfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment