Skip to content

redcoreit/auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auth guide for GitHub using SSH and YubiKey

YOLO

curl -fsSL https://raw.githubusercontent.com/redcoreit/auth/master/yolo.sh | sh

Linux SSH setup

gh-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

GitHub SSH (one-time manual step)

  • 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 web login, YubiKey as a Passkey (FIDO2)

  1. GitHub → Settings → Password and authentication
  2. Passkeys → Add passkey
  3. Insert YubiKey
  4. Touch when prompted

After this:

  • Any modern browser (Firefox, Chromium)
  • Login = insert key + touch

YubiKey cheatsheet

Generate RSA key on YubiKey

# generate, choose RSA 4096 or ECC (ed25519 / cv25519)
gpg --card-edit
admin
generate

# check key status
gpg --card-status

Encrypt with YubiKey

gpg --encrypt --recipient YOUR_KEY_ID secret.txt

Decrypt with YubiKey

gpg --decrypt secret.txt.gpg > secret.txt

Omarchy for me

DO NOT USE THIS, this one is for me because I'm lazy :)

curl -fsSL https://raw.githubusercontent.com/redcoreit/auth/master/omarchy.sh | sh

About

YubiKey setup for Github

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages