Skip to content

Instantly share code, notes, and snippets.

View TallonRain's full-sized avatar

Kyle M. Worthington TallonRain

View GitHub Profile
@TallonRain
TallonRain / config.fish
Last active April 17, 2024 00:32
Set up Fish Shell to use gpg-agent as the SSH agent for Yubikeys and other smart cards
# Add these contents to ~/.config/fish/config.fish
# If using Brew, config.fish is located in /usr/local/Cellar/fish/[version]/etc/fish/
# Generally recommend using the installer from https://fishshell.com instead of brew
# to avoid version updates overwriting the config file
# Start or re-use a gpg-agent.
gpgconf --launch gpg-agent
# Ensure that GPG Agent is used as the SSH agent
set -e SSH_AUTH_SOCK
@ageis
ageis / YubiKey-GPG-SSH-guide.md
Last active March 16, 2024 13:18
Technical guide for using YubiKey series 4 for GPG and SSH

YubiKey 4 series GPG and SSH setup guide

Written for fairly adept technical users, preferably of Debian GNU/Linux, not for absolute beginners.

You'll probably be working with a single smartcard, so you'll want only one primary key (1. Sign & Certify) and two associated subkeys (2. Encrypt, 3. Authenticate). I've published a Bash function which automates this slightly special key generation process.