Anthony J. Martinez

Shared Access with GPG

For probably four or five years I have battled with the annoying need to pkill gpg-agent before I could ssh somehost and use the auth key on my smartcard for authentication. Then afterwards, I had to kill pcscd usually with systemctl or just by unplugging my smartcard and plugging it back in again. Today, I fixed that with but the few short lines below:

Add the following to ${HOME}/.gnupg/scdaemon.conf

# On Fedora 41 this is /usr/lib64/libpcsclite.so.1
pcsc-driver {your_path_to_libpcsclite}
card-timeout 5
disable-ccid
pcsc-shared

If you want to go further down this rabbit hole and potentially do something different I found this information here originally.