Re: gpg-agent: error accessing card: Conflicting use
Hi, now i have the same problem on my ubuntu installation at work. I've updated to ubuntu 15.10 and now it happens from time to time just like on my sabayon installation. But as i dont use the OTP feature of the yubikey at work i can say for sure that the problem exists without pressing the yubikey button. Also it happens without yubikey pull out and it is not related to my yubikey because a colleague of mine has the same problem after upgrading to ubuntu 15.10. GPG version is 1.4.18. Any help is appreciated. regards the2nd On 2015-08-11 20:10, the...@otpme.org wrote: Hi again :) nobody else with this problem? On 2015-05-30 14:25, the...@otpme.org wrote: Hi, i have a problem with gpg-agent when using it with a yubikey neo. after some time gpg-agent refuses to sign any data and so any ssh login with my key stored on the yubikey will fail. the gpg-agent log shows the following messages: 2015-05-30 13:49:36 gpg-agent[3600] error accessing card: Conflicting use 2015-05-30 13:49:36 gpg-agent[3600] smartcard signing failed: Conflicting use 2015-05-30 13:49:38 gpg-agent[3600] error getting default authentication keyID of card: Conflicting use the command to start gpg-agent on KDE login is: eval "$(/usr/bin/gpg-agent --daemon --enable-ssh-support --log-file ~/.gnupg/gpg-agent.log)" i haven't found the exact circumstances when it happens but its more likely to happen when the yubikey was plugged off and re-inserted, but it also happens without pull off from time to time. a restart of gpg-agent fixes the issue. it also often happens after i've pressed the yubikey button to generate an OTP but not always. gnupg version is 2.0.27-r1 running on sabayon linux. when using the same yubikey on my ubuntu 14.04 notebook at work i never had this problem. thanks for any help. regards the2nd ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: gpg-agent: error accessing card: Conflicting use
Hi everybody, I'm having the same problem and found the following steps to reproduce: 0. Configure your Yubikey NEO to eject the card on button press: ykneomgr -M81 Re-plug it afterwards! 1. Insert the Yubikey and press button to insert the (virtual) card 2. Use the authentication key stored on the card to log in to a SSH host 3. Press button to remove the (virtual) card (or wait if you have a timeout for auto-eject configured) 4. Press button to insert the (virtual) card again 5. Do anything that requires the card (e.g. gpg -d) gpg: public key decryption failed: Conflicting use Instead of having the SSH session still open, it suffices to have a persistent connection (ControlPersist ssh config option). Apparently, even an authenticated SSH session somehow still uses the agent (even without agent forwarding configured), and if the card was removed and re-inserted, this somehow blocks its usage. So instead of restarting the gpg-agent, you can also kill all open ssh sessions. Best regards, Jan-Philipp Litza signature.asc Description: OpenPGP digital signature ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: gpg-agent: error accessing card: Conflicting use
[the...@otpme.org:] nobody else with this problem? Yes, I have this problem with some regularity. I have been restarting gpg-agent so far to resolve it and haven't investigated further. I'm not sure exactly when this started, may have been around a 2.1 upgrade. marcel -- Marcel van der Boom → mar...@hsdev.com +31·168·468·824 xmpp:mar...@hsdev.com | http://telegram.me/marcel http://hsdev.com pgpi82dT19ESB.pgp Description: OpenPGP digital signature ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users