Thread: Can't luksAddKey, No key available with this passphrase.
i'm trying add key new slot keyfile created, keep getting error , don't know problem is.
content of swap.keycode:root@ubuntu:~# cryptsetup luksaddkey --key-slot 1 /dev/sda5 -d /media/ubuntu_10_04/etc/cryptkeys/swap.key no key available passphrase.
what's going on here?code:nbpencr_ps-yev5syeyyzaeextlldlo7ahs7yzgw9dtc48gdlte6wyqe7ig2pojr84u6twxu1dimzcyobpb1q1ajyaanpsre7qlr7vnn4g6u1x_wg-sja6u_pvnks9ctgcd4umfbw9mkru3yy4gknqxtplvkibkm1soj0syyq2r-7cdzjvaiyjb9eokkbmsjlreg39ibdqwdcep3d7pk5patyzdvhu2ygrjvjy-sjly4oqb2274do8hbyviqspdawetglkhhhhhhh98h4erwjerfkasjnfhsahfoclnbpencr_ps-yev5syeyyzaeextlldlo7ahs7yzgw9dtc48gdlte6wyqe7ig2pojr84u6twxu1dimzcyobpb1q1ajyaanpsre7qlr7vnn4g6u1x_wg-sja6u_pvnks9ctgcd4umfbw9mkru3yy4gknqxtplvkibkm1soj0syyq2r-7cdzjvaiyjb9eokkbmsjlreg39ibdqwdcep3d7pk5patyzdvhu2ygrjvjy-sjly4oqb2274do8hbyviqspdawetglkhhhhhhh98h4erwjerfkasjnfhsahfoclnbpencr_ps-yev5syeyyzaeextlldlo7ahs7yzgw9dtc48gdlte6wyqe7ig2pojr84u6twxu1dimzcyobpb1q1ajyaanpsre7qlr7vnn4g6u1x_wg-sja6u_pvnks9ctgcd4umfbw9mkru3yy4gknqxtplvkibkm1soj0syyq2r-7cdzjvaiyjb9eokkbmsjlreg39ibdqwdcep3d7pk5patyzdvhu2ygrjvjy-sjly4oqb2274do8hbyviqspdawetglkhhhhhhh98h4erwjerfkasjnfhsahfoclnbpencr_ps-yev5syeyyzaeextlldlo7ahs7yzgw9dtc48gdlte6wyqe7ig2pojr84u6twxu1dimzcyobpb1q1ajyaanpsre7qlr7vnn4g6u1x_wg-sja6u_pvnks9ctgcd4umfbw9mkru3yy4gknqxtplvkibkm1soj0syyq2r-7cdzjvaiyjb9eokkbmsjlreg39ibdqwdcep3d7pk5patyzdvhu2ygrjvjy-
i figured out problem, feel have been avoided clearer response messages cryptsetup, along better handling of --key-file option.
#1
apparently, using option --key-file after specifying device
makes cryptsetup think "--key-file" name of file, which
causes error "no key available passphrase."
#2code:root@ubuntu:~# cryptsetup luksaddkey --key-slot 1 /dev/sda5 --key-file /etc/cryptkeys/swap.key no key available passphrase.
when tried without --key-file option, appeared me that
keyfile again not being read correctly, , being asked manually enter new passphrase.
# 3code:root@ubuntu:~# cryptsetup luksaddkey --key-slot 1 /dev/sda5 /etc/cryptkeys/swap.key enter passphrase: no key available passphrase.
when tried enter new password manually, greeted the
same error, under impression running the
same problem before.
after trying #2 again, time entering *existing* passphrase, worked. if cryptsetup had asked me "enter *existing* passphrase", have done so, thought asking whatever new passphrase wanted enter.code:root@ubuntu:~# cryptsetup luksaddkey --key-slot 1 /dev/sda5 enter passphrase: no key available passphrase.
Forum The Ubuntu Forum Community Ubuntu Specialised Support Security [ubuntu] Can't luksAddKey, No key available with this passphrase.
Ubuntu
Comments
Post a Comment