Score:2

Yubikey 2FA does not work on Ubuntu 22.04 Firefox from apt

cn flag

I have set up a web page access with two-factor authentication. Using Firefox installed via Snap, I have been able to access my account. The flow is like this: The web page asks for username and password, when correctly inserted, Firefox asks me to touch my Yubikey, which lights up in that moment. I'm logged in. (The authentication method is called Yubikey U2F, if I'm not mistaken.)

Due to performance problems I have removed Firefox installed via Snap and instead installed it via apt. However, since that change I cannot authenticate on the same web page using Firefox. The page directly fails ("failed to authenticate via security key"), the Yubikey never lights up.

The same flow works flawlessly on Chrome. Reverting Firefox to Snap also re-enables U2F to work but I would like to avoid that.

System info:

  • System: Ubuntu 22.04 Desktop
  • I have installed libpam-u2f as recommended on yubico's documentation.
  • Firefox: 107.0 from ppa:mozillateam/ppa
  • Chrome: 107.0.5304.110 download from google.de/chrome
  • Yubikey: 5C NFC
Score:1
cn flag

I finally managed to solve it by uninstalling Firefox, removing the ~/.mozilla folder (careful: you lose all personal settings, consider using Firefox Sync), and re-installing it.

Frew Schmidt avatar
cn flag
Sadly I have a very similar setup but blowing away ~/.mozilla did not fix the problem.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.