At first, I simply thought that it was like a U disk, simply plugged the Yubikey into the computer, and then directly selected to connect to the client machine in VMWare. There are logs in dmessge, but gpg –card-status cannot be found.
After a bit of Google, I found a solution to the ” one trash can ” blog record. Now his blog cannot be accessed, and he can only see the content through google cache.
According to Yubikey’s support documentation, you need to connect a non-Shared Yubikey to the client, namely Yubikey.
The specific setting method is.
1. Check the Yubikey ID Values of your corresponding model here https://ift.tt/4XoRIB8 and write it down
2. Close the client
3. Edit the .vmx file of the corresponding client and add these lines in it:
usb.generic.allowHID = "TRUE" usb.generic.allowLastHID = "TRUE" usb.quirks.device0 = "0x1050:0x0407 allow"
The value of usb.quirks.device0 should correspond to your Yubikey model. The above are for Yubikey 4 and 5.
Finally, power on the virtual machine, select the connection, and then configure gpg
➜ gpg --card-status gpg: selecting card failed: Service is not running gpg: OpenPGP card not available: Service is not running ➜ pkill gpg-agent ➜ gpg --card-status Reader ...........: Yubico YubiKey OTP FIDO CCID ...
This article is reprinted from: https://www.liurongxing.com/%E5%9C%A8vmware-workstation%E7%9A%84linux-mint%E8%99%9A%E6%8B%9F%E6%9C%BA%E9% 87%8C%E4%BD%BF%E7%94%A8-yubikey.html
This site is for inclusion only, and the copyright belongs to the original author.