luksAddKey with a keyfile?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello

I want to use a key-file instead a password for an existing lukspartition.

How can I do it (??)
root@dark:~# cryptsetup --version
cryptsetup 1.1.0

For password, I do a:
cryptsetup luksAddKey /dev/sda1 
and it asks for the old password, then the new passwod:
root@dark:~# cryptsetup luksAddKey /dev/loop0 
Enter any passphrase: 
Key slot 0 unlocked.
Enter new passphrase for key slot: 
Verify passphrase: 
root@dark:~#

But how use it with a file? man says to use 
luksAddKey <device> [<new key file>]
And here is the result:
root@dark:~# cryptsetup luksAddKey /dev/loop0 /root/key
Enter any passphrase: 
Verify passphrase: 
Key slot 0 unlocked.
root@dark:~# cryptsetup luksClose /dev/loop0
Device /dev/loop0 not found
root@dark:~# cryptsetup luksClose cipher   
root@dark:~# cat key | cryptsetup luksOpen /dev/loop0 cipher
No key available with this passphrase.
No key available with this passphrase.
No key available with this passphrase.
root@dark:~

What am I doing wrong? I prefer to use "cat key" for a later use. Why I
have three error messages? 

Thanks for help

Envoyé avec Inmano, ma messagerie renversante et gratuite : http://www.inmano.com



_______________________________________________
dm-crypt mailing list
dm-crypt@xxxxxxxx
http://www.saout.de/mailman/listinfo/dm-crypt



[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux