3

I'm trying to set up a YubiKey via gpg using WSL Ubuntu on Windows, but I get error:

$ gpg --card-status    
    gpg: selecting card failed: Service is not running
    gpg: OpenPGP card not available: Service is not running
  • All of these result in the same error message above:
    $ gpgconf -K gpg-agent
    $ gpg --card-status
    

    $ pkill gpg-agent $ gpg --card-status

    $ sudo systemctl restart pcscd.service $ gpg --card-status

  • I can view my device from WSL when I attach the YubiKey:
    $ sudo pscs_show
        PC/SC device scanner
        V 1.7.1 (c) 2001-2022, Ludovic Rousseau <ludovic.rousseau@free.fr>
    
    Using reader plug'n play mechanism
      Scanning present readers...
      0: Yubico YubiKey OTP+FIDO+CCID 00 00
    


How do I resolve this?

JW0914
  • 9,096
Victor
  • 31

0 Answers0