curl -fsSL https://raw.githubusercontent.com/redcoreit/auth/master/yolo.sh | shgh-yk-arch.sh
This script installs necessary components to use YubiKey with Arch linux.
gh-sk-linux.sh
Creates a new SSH key-pair, the classic way.
config-ssh.sh
Configures SSH keys to access GitHub.
yolo.sh
Calls gh-yk-arch.sh and config-ssh.sh
- Copy the printed public key
- Go to: GitHub → Settings → SSH and GPG keys → New SSH key
- Paste it
- Test:
ssh -T git@github.com
You should see:
Hi <username>! You've successfully authenticated...Touch required. No passwords. Ever.
- GitHub → Settings → Password and authentication
- Passkeys → Add passkey
- Insert YubiKey
- Touch when prompted
After this:
- Any modern browser (Firefox, Chromium)
- Login = insert key + touch
# generate, choose RSA 4096 or ECC (ed25519 / cv25519)
gpg --card-edit
admin
generate
# check key status
gpg --card-statusgpg --encrypt --recipient YOUR_KEY_ID secret.txtgpg --decrypt secret.txt.gpg > secret.txtDO NOT USE THIS, this one is for me because I'm lazy :)
curl -fsSL https://raw.githubusercontent.com/redcoreit/auth/master/omarchy.sh | sh