Skip to main content

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.

code:
root@ubuntu:~# cryptsetup luksaddkey --key-slot 1 /dev/sda5 -d /media/ubuntu_10_04/etc/cryptkeys/swap.key  no key available passphrase.
content of swap.key
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-
what's going on here?

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."

code:
root@ubuntu:~# cryptsetup luksaddkey --key-slot 1 /dev/sda5 --key-file /etc/cryptkeys/swap.key no key available passphrase.
#2
when tried without --key-file option, appeared me that
keyfile again not being read correctly, , being asked manually enter new passphrase.

code:
root@ubuntu:~# cryptsetup luksaddkey --key-slot 1 /dev/sda5 /etc/cryptkeys/swap.key  enter passphrase:  no key available passphrase.
# 3
when tried enter new password manually, greeted the
same error, under impression running the
same problem before.

code:
root@ubuntu:~# cryptsetup luksaddkey --key-slot 1 /dev/sda5 enter passphrase:  no key available passphrase.
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.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Security [ubuntu] Can't luksAddKey, No key available with this passphrase.


Ubuntu

Comments

Popular posts from this blog

How to decompile jsxbin to jsx

Gavik Photoslide GK2: Not able to upload photos - Joomla! Forum - community, help and support

Phoca Guestbook logger registret bruger af - Joomla! Forum - community, help and support