Skip to content

Instantly share code, notes, and snippets.

@benjojo
Last active May 3, 2018 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benjojo/4f4776d354a4f871018fe83ddf659612 to your computer and use it in GitHub Desktop.
Save benjojo/4f4776d354a4f871018fe83ddf659612 to your computer and use it in GitHub Desktop.
Zero BS Yubi Key as SSH Agent
sudo apt-get install -y gnupg2 gnupg-agent pinentry-curses scdaemon pcscd yubikey-personalization libusb-1.0-0-dev
mkdir -p ~/.gnupg/
echo "enable-ssh-support" >> ~/.gnupg/gpg-agent.conf
# then in your bashrc
export GPG_TTY="$(tty)"
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment