Skip to content

Instantly share code, notes, and snippets.

@nathiss
Last active March 29, 2023 18:58
Show Gist options
  • Save nathiss/9a5a6b6db02ac31081ad3484da06e08e to your computer and use it in GitHub Desktop.
Save nathiss/9a5a6b6db02ac31081ad3484da06e08e to your computer and use it in GitHub Desktop.
Setting up gpg-agent for Yubikey
# [...]
export GPG_TTY="$(tty)"
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpg-connect-agent /bye > /dev/null
# Add this file to "~/.gnupg"
pinentry-program /opt/homebrew/bin/pinentry-mac
enable-ssh-support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment