Skip to content

Instantly share code, notes, and snippets.

View csullivannet's full-sized avatar

Christopher Sullivan csullivannet

  • Canada
View GitHub Profile

YubiKey for FIDO2 Auth on WSL2 (Ubuntu)

What?

I got my hands on a new YubiKey 5 over the weekend. For those unaware, this is a pretty well-known security key which provides options for hardware authentication using a variety of different protocols (e.g. FIDO2, OpenPGP etc.). I was keen to try this out for authenticating with GitHub and also handling SSH credentials when accessing servers I'm running on my local network.

The problem however, is that I'm a pretty heavy WSL (Ubuntu) user and needed something which plays well in that environment. I didn't think about it too much when I initially ordered the YubiKey, but worked out over the weekend that getting a USB device (particularly a security key) to play nicely with WSL, isn't exactly straight forward. So, I did a write-up of the steps I ended up taking for others (or myself) to refer back to.

References

Keybase proof

I hereby claim:

  • I am csullivannet on github.
  • I am csullivan (https://keybase.io/csullivan) on keybase.
  • I have a public key ASAaTN0Sxmu1pWVOTuccAq0opPKiaTmgdaA9ipS1wbDeewo

To claim this, I am signing this object: