Hi friends! Has anyone here had success using Yubikeys on Linux? I’ve been going back and forth with support to no avail, trying to get my Yubikey 5C NFC to play nicely on Ubuntu 22.04 LTS. Any suggestions are appreciated.
usually when I have problems with YubiKey being detected it is because the pcscd service has not been started, or I forgot to enable it so it would start automatically on boot.
You can follow the instructions here on how to do so: https://linuxhandbook.com/systemd-start-service-boot/
Did you check their support guides https://support.yubico.com/hc/en-us/articles/360016649099-Ubuntu-Linux-Login-Guide-U! ?
I use my Yubikeys all the time in OpenSUSE Tumbleweed and Linux Mint - a Yubikey 5 NFC and a Yubikey 5C NFC (mostly with Firefox). I have never had any problems with them. Mint is Ubuntu-based so they ought to work in Ubuntu. Sorry I can’t advise you on why yours isn’t working, but it should definitely be possible to get it working.
Tumbleweed user here. Thinking of buying a yubikey; is it easy to setup for logins etc or does it involve terminal commands etc. I mean is there a repository app?
I’m afraid I can’t remember how I did it, it was some time ago on a machine I no longer have. There is some advice here:
https://support.yubico.com/hc/en-us/articles/360016649039-Installing-Yubico-Software-on-Linux
There’s an appimage for their manager app there. You might also try using Distrobox to give yourself access to a distro that uses apt, and then add Yubico’s PPA and install the software from there. I don’t know whether it would work but in principle it should.
It works fine straight out of the box. If you need the totp codes, personalization, setting it up download the yubikey apps (probably in your apt repo or check documentation)
I’m on Debian, but I think I’ve only ever used mine in Librewolf. But I can verify it works fine for me in the browser.
I have tried a yubikey on ubuntu without any problems. Could you please describe what exactly isn’t working
For gnome login, (on Fedora at least) you need to install the packages and edit PAM config to enable the yubikey with login.
Thanks for your response. I am just looking to use the Yubikey for OTP/passkeys, not system login
I used to use one without any issues, it wasn’t the 5 series but it had NFC. The worst part was setting up to use it as an ssh key. Just normal 2FA with it worked straight out of the box (firefox/arch). Is that what you’re trying to do?