Skip to content

Instantly share code, notes, and snippets.

@joaopgrassi
joaopgrassi / guide.md
Created February 17, 2024 15:54 — forked from Kranzes/guide.md
SSH Resident Key Guide

Initial checks

Start by checking that there aren't any previous ssh keys inside the FIDO2 authenticator of your YubiKey. You can check if they exist by running the command below:

nix shell nixpkgs#yubikey-manager -c ykman fido credentials list

If the command above outputs a string mentioning "ssh" or "openssh", then you have already got a key generated and store on your YubiKey.

Evaluating additional authentication factors

Before generating a new ssh key to store on your YubiKey you must consider which additional required authentication factors you want to use. Below you can see a table with the available factors and their corresponding command:

class Program
{
static void Main(string[] args)
{
using (var store = WireupEventStore())
{
// do some stuff
}
}