pamu2fcfg: No U2F device available, please insert one now

$ pamu2fcfg
No U2F device available, please insert one now, you have 13 seconds

Yubikey needs to be in FIDO or OTP+FIDO mode:

$ ykman mode
Current connection mode is: OTP
Supported USB interfaces are: OTP, FIDO, CCID

To set the correct mode, run:

$ ykman mode OTP+FIDO
Set mode of YubiKey to OTP+FIDO? [y/N]: y

Test in verbose + debug mode:

$ pamu2fcfg -v -d
Setting origin to pam://localhost
Setting appid to pam://localhost
USB send: 00ffffffff8600xxxxxxxxxxxxxxxxxxxxx000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
USB write returned 65
now trying with timeout 2
USB read rc read 64
USB recv: ffffffff86001xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx00000000000000000000000000000000000000000000000000000000000000000000000000000000
device /dev/hidraw9 discovered as 'YubiKey OTP+FIDO'

Categorized as General