# Nitrokey 3 Linux User Authentication Stopped Working

**URL:** <https://support.nitrokey.com/t/nitrokey-3-linux-user-authentication-stopped-working/7827>\
**Category:** FIDO2 / Nitrokey 3\
**Created:** [November 22, 2026, 9:50am UTC](https://support.nitrokey.com/t/nitrokey-3-linux-user-authentication-stopped-working/7827 "2026-11-22T09:50:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anthony\_p](https://support.nitrokey.com/letter_avatar_proxy/v4/letter/a/ecccb3/32.png) [@anthony\_p](https://support.nitrokey.com/u/anthony_p)\
**Post date:** [November 22, 2026, 9:50am UTC](https://support.nitrokey.com/t/nitrokey-3-linux-user-authentication-stopped-working/7827/1 "2026-11-22T09:50:26Z")

</div>

Hello. I’ve been using the Nitrokey 3A Mini for pam\_u2f for a while. I recently updated the firmware from 1.8 to 1.9. I then reset the Nitrokey to factory settings and generated a new `u2f_keys` file. However, after placing the `u2f_keys` file in the correct location, pam\_u2f stopped accepting the Nitrokey. I can tell that it checks the Nitrokey because sudo stalls for a second and the Nitrokey turns green before turning off again. I tried using my old `u2f_keys`, but that didn’t work either. Any suggestions?

---

<div class="post-metadata">

**Author:** ![robin-nitrokey](https://support.nitrokey.com/letter_avatar_proxy/v4/letter/r/b19c9b/32.png) [@robin-nitrokey](https://support.nitrokey.com/u/robin-nitrokey)\
**Post date:** [November 22, 2026, 1:22pm UTC](https://support.nitrokey.com/t/nitrokey-3-linux-user-authentication-stopped-working/7827/2 "2026-11-22T13:22:25Z")

</div>

Can you share how you generated the new file and with which configuration you use it? It is expected that the old file no longer works because you reset the key.

---

<div class="post-metadata">

**Author:** ![anthony\_p](https://support.nitrokey.com/letter_avatar_proxy/v4/letter/a/ecccb3/32.png) [@anthony\_p](https://support.nitrokey.com/u/anthony_p)\
**Post date:** [November 22, 2026, 6:58pm UTC](https://support.nitrokey.com/t/nitrokey-3-linux-user-authentication-stopped-working/7827/3 "2026-11-22T18:58:59Z")

</div>

Thanks for reaching out so quickly!  
I use NixOS, so I used the `pamu2fcfg` and `pam_u2f.so` from [nixpkgs](https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/by-name/pa/pam_u2f/package.nix#L17). In other words, I got them from [developers.yubico.com](http://developers.yubico.com).  
I ran `pamu2fcfg`, tapped the Nitrokey, copied the output to a file and used the file in `/etc/pam.d/sudo` (and other PAM files). Here is my `/etc/pam.d/sudo`:

```auto
# Account management.
account required /nix/store/ajn83h1fdvxjv69fg1fpi6wcmhbkmzh3-linux-pam-1.7.2/lib/security/pam_unix.so # unix (order 11000)

# Authentication management.
auth sufficient /nix/store/8gg72kbcjfhz3yajrv9hb2s8152h44y2-pam_u2f-1.4.0/lib/security/pam_u2f.so authfile=/run/secrets/u2f_keys cue cue_prompt=Tap. origin=pam://<hostname omitted> # u2f (order 10900)
auth sufficient /nix/store/ajn83h1fdvxjv69fg1fpi6wcmhbkmzh3-linux-pam-1.7.2/lib/security/pam_unix.so likeauth try_first_pass # unix (order 11700)
auth required /nix/store/ajn83h1fdvxjv69fg1fpi6wcmhbkmzh3-linux-pam-1.7.2/lib/security/pam_deny.so # deny (order 12500)

# Password management.
password sufficient /nix/store/ajn83h1fdvxjv69fg1fpi6wcmhbkmzh3-linux-pam-1.7.2/lib/security/pam_unix.so nullok # unix (order 10200)

# Session management.
session required /nix/store/ajn83h1fdvxjv69fg1fpi6wcmhbkmzh3-linux-pam-1.7.2/lib/security/pam_env.so conffile=/etc/pam/environment readenv=0 # env (order 10100)
session required /nix/store/ajn83h1fdvxjv69fg1fpi6wcmhbkmzh3-linux-pam-1.7.2/lib/security/pam_unix.so # unix (order 10200)
session required /nix/store/ajn83h1fdvxjv69fg1fpi6wcmhbkmzh3-linux-pam-1.7.2/lib/security/pam_limits.so conf=/nix/store/5mn0dn14n6dwb22gpw3sjmnbpqk7pm6w-limits.conf # limits (order 12200)

```
