# PC/SC driver pcsc-driver /usr/lib/libpcsclite.so # Disable CCID (for YubiKey) disable-ccid # Enable card removal notification card-timeout 5 Edit ~/.gnupg/gpg-agent.conf :
enable-ssh-support default-cache-ttl 600 max-cache-ttl 7200 pinentry-program /usr/bin/pinentry-curses # or pinentry-mac on macOS Restart the agent: gpg dongle setup
gpg --card-status Expected output shows: # PC/SC driver pcsc-driver /usr/lib/libpcsclite
gpg --export-ssh-key YOUR_KEYID > ~/.ssh/id_rsa_gpg.pub Add to ~/.ssh/config : ~/.ssh/id_rsa_gpg.pub Add to ~/.ssh/config :