Skip to content

Instantly share code, notes, and snippets.

@andrewnicolalde
Created February 6, 2019 23: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 andrewnicolalde/9cdcbea1fac655beb0586032db22d2ff to your computer and use it in GitHub Desktop.
Save andrewnicolalde/9cdcbea1fac655beb0586032db22d2ff to your computer and use it in GitHub Desktop.
YubiKey SSH Fedora Gnome
if ! pgrep -u $USER -f "gpg-agent.*enable-ssh-support" > /dev/null
then
pkill gpg-agent
gpg-agent --homedir $HOME/.gnupg --daemon --enable-ssh-support
fi
SSH_AUTH_SOCK=$(gpgconf --list-dir agent-ssh-socket)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment