Skip to content

Instantly share code, notes, and snippets.

View boldsuck's full-sized avatar

boldsuck boldsuck

View GitHub Profile
@boldsuck
boldsuck / guide.md
Last active October 14, 2026 18:39 — forked from Kranzes/guide.md
SSH Resident Key Guide

General Note

Make sure to check out NitroKeys, OnlyKeys or SoloKeys. They are based on open-source hardware and firmware while YubiKey's are closed source. ssh-keygen is able to generate FIDO authenticator-backed keys which can be either an ecdsa-sk or an ed25519-sk key-pair. The sk extension stands for security key. Note that an ed25519-sk key-pair is only supported by new YubiKeys with firmware 5.2.3 or higher which supports FIDO2. This means YubiKeys with firmware below 5.2.3 are only compatible with ecdsa-sk key-pairs. If possible, generate an ed25519-sk SSH key-pair for this reason.

We can check the firmware version of a YubiKey with the following command.

$ lsusb -v 2>/dev/null | grep -A2 Yubico | grep "bcdDevice" | awk '{print $2}'

4.37
@boldsuck
boldsuck / README.md
Last active May 18, 2024 14:20 — forked from developius/README.md
Setup SSH keys for use with GitHub/GitLab/BitBucket etc

Create a new repository, or reuse an existing one.

Generate a new SSH key:

ssh-keygen -t ed25519 -C "your_email@example.com"

Since OpenSSH version 8.2 using FIDO2 security keys for SSH is recommed.
https://github.blog/2021-05-10-security-keys-supported-ssh-git-operations/
OnlyKey & Nitrokey 3 support ed25519 keys with OpenSSH. Only a YubiKey with firmware 5.2.3 or higher supports the ed25519 curve!

#!/bin/bash
rm -rf ~/temp/git/tari
mkdir ~/temp/git
cd ~/temp/git
git clone https://github.com/tari-project/tari.git
git checkout development
cd tari
NOW=$(date +"%Y-%m-%d")
COMMIT=$(git log --pretty=format:'%h' -n 1)
OUTDIR=~/build/nightly/$NOW-$COMMIT