I am getting "No key available with this passphrase." when trying:
sudo cryptsetup open --type luks /dev/sdc storage --key-file=/path/to/keyfile
The /path/to/keyfile
file contains just the passphrase in plain text.
If I enter the same passphrase when asked interactively:
sudo cryptsetup open --type luks /dev/sdc storage
then it works.
Why would --key-file
not work in this case? This is Ubuntu 14.04 @ Linux 3.13.0-68.