Skip to content

Instantly share code, notes, and snippets.

@lesnuages
Created January 12, 2023 00:20
Show Gist options
  • Save lesnuages/14680e7ed481d829e81c0e9a109726a1 to your computer and use it in GitHub Desktop.
Save lesnuages/14680e7ed481d829e81c0e9a109726a1 to your computer and use it in GitHub Desktop.
SSH Fido key generation

Yubikey

Generate signing key

ssh-keygen -t ecdsa-sk -f ~/.ssh/github_lesnuages_sign_sk_usbc -Oapplication=ssh:github_perso_sign -Oresident -C "GitHub account - Signing Key (lesnuages)"

Generate SSH key

ssh-keygen -t ecdsa-sk -f ~/.ssh/github_lesnuages_sk_usbc -Oapplication=ssh:github_perso -Oresident -C "GitHub account (lesnuages)"

List credentials

ykman fido credentials list
Enter your PIN:
Credential ID  RP ID                  Username  Display name
XXXXXXXX...    ssh:github_perso       openssh   openssh
XXXXXXXX...    ssh:github_bf          openssh   openssh
XXXXXXXX...    ssh:github_bf_sign     openssh   openssh
XXXXXXXX...    ssh:github_perso_sign  openssh   openssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment