Last active
May 3, 2018 12:03
-
-
Save benjojo/4f4776d354a4f871018fe83ddf659612 to your computer and use it in GitHub Desktop.
Zero BS Yubi Key as SSH Agent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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