Skip to content

Instantly share code, notes, and snippets.

View trunet's full-sized avatar

Wagner Sartori Junior trunet

  • MagaluCloud
  • São Paulo/SP/Brazil
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

@pmoranga
pmoranga / aws-check-reserved-instances.py
Last active November 20, 2021 19:03
AWS Reserved Report
#!/usr/bin/env python3
import boto3
import warnings
warnings.filterwarnings('ignore', category=UnicodeWarning)
def get_count_reserved_by_family_base(instances,instance_type,platform):
item = {}
total = 0