My NitroKey 3A mini stopped working recently. It spew some USB errors from the Linux kernel:
[Mo Jan 29 07:15:08 2024] usb 1-1: device descriptor read/64, error -71
[Mo Jan 29 07:15:08 2024] usb 1-1: device descriptor read/64, error -71
[Mo Jan 29 07:15:08 2024] usb 1-1: new full-speed USB device number 123 using xhci_hcd
[Mo Jan 29 07:15:09 2024] usb 1-1: device descriptor read/64, error -71
[Mo Jan 29 07:15:09 2024] usb 1-1: device descriptor read/64, error -71
[Mo Jan 29 07:15:09 2024] usb usb1-port1: attempt power cycle
[Mo Jan 29 07:15:10 2024] usb 1-1: new full-speed USB device number 124 using xhci_hcd
[Mo Jan 29 07:15:10 2024] usb 1-1: Device not responding to setup address.
[Mo Jan 29 07:15:10 2024] usb 1-1: Device not responding to setup address.
[Mo Jan 29 07:15:10 2024] usb 1-1: device not accepting address 124, error -71
[Mo Jan 29 07:15:10 2024] usb 1-1: new full-speed USB device number 125 using xhci_hcd
[Mo Jan 29 07:15:10 2024] usb 1-1: Device not responding to setup address.
[Mo Jan 29 07:15:10 2024] usb 1-1: Device not responding to setup address.
[Mo Jan 29 07:15:11 2024] usb 1-1: device not accepting address 125, error -71
[Mo Jan 29 07:15:11 2024] usb usb1-port1: unable to enumerate USB device
[Mo Jan 29 07:15:18 2024] usb 1-1: new full-speed USB device number 126 using xhci_hcd
[Mo Jan 29 07:15:18 2024] usb 1-1: New USB device found, idVendor=20a0, idProduct=42b2, bcdDevice= 1.03
[Mo Jan 29 07:15:18 2024] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[Mo Jan 29 07:15:18 2024] usb 1-1: Product: Nitrokey 3
[Mo Jan 29 07:15:18 2024] usb 1-1: Manufacturer: Nitrokey
[Mo Jan 29 07:15:18 2024] usb 1-1: Device is not authorized for usage
[Mo Jan 29 07:15:18 2024] hid-generic 0003:20A0:42B2.0013: hiddev0,hidraw0: USB HID v1.11 Device [Nitrokey Nitrokey 3] on usb-0000:00:14.0-1/input1
[Mo Jan 29 07:15:18 2024] cdc_acm 1-1:1.2: ttyACM0: USB ACM device
[Mo Jan 29 07:15:18 2024] usb 1-1: authorized to connect
[Mo Jan 29 07:15:19 2024] usb 1-1: USB disconnect, device number 126
I was not able to get the thing do work again with ssh. It seems, though, that the USB side got a grip on itself after some time:
[Mo Jan 29 07:16:22 2024] usb 1-6: new full-speed USB device number 5 using xhci_hcd
[Mo Jan 29 07:16:22 2024] usb 1-6: New USB device found, idVendor=20a0, idProduct=42b2, bcdDevice= 1.03
[Mo Jan 29 07:16:22 2024] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[Mo Jan 29 07:16:22 2024] usb 1-6: Product: Nitrokey 3
[Mo Jan 29 07:16:22 2024] usb 1-6: Manufacturer: Nitrokey
[Mo Jan 29 07:16:22 2024] usb 1-6: Device is not authorized for usage
[Mo Jan 29 07:16:22 2024] hid-generic 0003:20A0:42B2.0017: hiddev0,hidraw0: USB HID v1.11 Device [Nitrokey Nitrokey 3] on usb-0000:00:14.0-6/input1
[Mo Jan 29 07:16:22 2024] cdc_acm 1-6:1.2: ttyACM0: USB ACM device
[Mo Jan 29 07:16:22 2024] usb 1-6: authorized to connect
[Mo Jan 29 07:16:52 2024] usb 1-6: USB disconnect, device number 5
This was me disconnecting it after testing ssh connections that failed to work.
What is permanent: I cannot authenticate with the device. I always get
sign_and_send_pubkey: signing failed for ED25519-SK "/home/user/.ssh/id_ed25519_nitro1": device not found
I realized that this just seems to mean that the device doesn’t offer the correct keys anymore … it seems to have done a reset, nuking all my keys that relied on it (all non-resident ed25519-sk, plus some FIDO2 2FA use for websites)!
I can create new keys and re-register the thing with 2FA services … but when will this happen again? Current info:
$ nitropy nk3 status
Command line tool to interact with Nitrokey devices 0.4.45
UUID: xxxxx
Firmware version: v1.3.1
Init status: ok
Free blocks (int): 253
Free blocks (ext): 478
Is this a known firmware issue? A hardware glitch? My trust is rather shaken.