Advertisement
Tritonio

Yubikey no such device error fix

May 1st, 2020
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. If you receive the “no such device” error when running gpg --card-status, you can use the sections below to troubleshoot.
  2.  
  3. Basic Troubleshooting
  4. Using YubiKey Manager, ensure that the CCID USB interface is enabled and the OpenPGP application is enabled over USB.
  5.  
  6. Remove and reinsert the YubiKey. Sometimes, the GPG agent does not correctly detect if the YubiKey is plugged in.
  7.  
  8. Force GPG agent to restart by running the following command in Command Prompt (Windows) or Terminal (macOS / Linux): gpgconf --kill gpg-agent
  9.  
  10. GPG Options
  11. If GPG is still not detecting the YubiKey, you may need to change some of GPG’s options. Using a text editor, add the line “reader-port Yubico Yubikey” for YubiKey NEO and YubiKey 4, "reader-port Yubico Yubi" for YubiKey 5 (without quotes) to your scdaemon.conf file. If the file does not exist, create it.
  12.  
  13. On Windows, this is saved at: %APPDATA%\gnupg\scdaemon.conf
  14.  
  15. On macOS and Linux, this is saved at: ~/.gnupg/scdaemon.conf
  16.  
  17. Once you have added these options, restart the GPG agent by running the command below in Command Prompt (Windows) or Terminal (macOS / Linux).
  18.  
  19. gpgconf --kill gpg-agent
  20.  
  21.  
  22.  
  23. Additional Troubleshooting
  24. If you are running a distribution of Linux that uses systemd, you may need to start and enable the pcsc daemon, which can be done by running the following commands.
  25.  
  26. #systemctl start pcscd
  27. #systemctl enable pcscd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement