Hi,
I have been using my Yubikey 4 with gnupg for months without any issues.
My problem today:
Quote:
$ gpg --card-status
gpg: selecting openpgp failed: No such device
gpg: OpenPGP card not available: No such device
[1] 19672 exit 2 gpg --card-status
What I tried so far:
- re-plug Yubikey (multiple usb ports)
- restart scdaemon
- restart pcscd
pcscd reports:
Quote:
sudo systemctl status pcscd
● pcscd.service - PC/SC Smart Card Daemon
Loaded: loaded (/lib/systemd/system/pcscd.service; indirect; vendor preset: enabled)
Active: inactive (dead) since Fri 2017-06-02 13:07:17 CEST; 2min 50s ago
Process: 18739 ExecStart=/usr/sbin/pcscd --foreground --auto-exit (code=exited, status=0/SUCCESS)
Main PID: 18739 (code=exited, status=0/SUCCESS)
Jun 02 13:01:05 host systemd[1]: Started PC/SC Smart Card Daemon.
Jun 02 13:01:12 host pcscd[18739]: 00000000 ifdhandler.c:144:CreateChannelByNameOrChannel() failed
Jun 02 13:01:12 host pcscd[18739]: 00000020 readerfactory.c:1043:RFInitializeReader() Open Port 0x2
Jun 02 13:01:12 host pcscd[18739]: 00000002 readerfactory.c:335:RFAddReader() Yubico Yubikey 4 OTP+
Jun 02 13:01:12 host pcscd[18739]: 00008803 ifdhandler.c:144:CreateChannelByNameOrChannel() failed
Jun 02 13:01:12 host pcscd[18739]: 00000010 readerfactory.c:1043:RFInitializeReader() Open Port 0x2
Jun 02 13:01:12 host pcscd[18739]: 00000002 readerfactory.c:335:RFAddReader() Yubico Yubikey 4 OTP+
Any ideas what might cause the
CreateChannelByNameOrChannel() failed error?
Quote:
$ uname --kernel-name --kernel-release
Linux 4.4.0-53-generic
$ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 18.1 Serena
Release: 18.1
Codename: serena
$ gpg --version
gpg (GnuPG) 2.1.18
libgcrypt 1.7.6
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: [...]
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
$ pcscd --version
pcsc-lite version 1.8.14.
Copyright (C) 1999-2002 by David Corcoran <corcoran@musclecard.com>.
Copyright (C) 2001-2011 by Ludovic Rousseau <ludovic.rousseau@free.fr>.
Copyright (C) 2003-2004 by Damien Sauveron <sauveron@labri.fr>.
Report bugs to <muscle@lists.musclecard.com>.
Enabled features: Linux x86_64-pc-linux-gnu serial usb libudev usbdropdir=/usr/lib/pcsc/drivers ipcdir=/var/run/pcscd configdir=/etc/reader.conf.d