FiloSottile / yubikey-agent

yubikey-agent is a seamless ssh-agent for YubiKeys.
https://filippo.io/yubikey-agent
BSD 3-Clause "New" or "Revised" License
2.6k stars 124 forks source link

Breaking change from go-piv 1.10.0: pin prompt: pinentry: unexpected response: "S ERROR gtk2.isatty 83918950 #150

Open IniterWorker opened 2 months ago

IniterWorker commented 2 months ago

Bug from v1.10.0 go-piv

Error Logs

yubikey-agent

Apr 26 12:56:51 worker systemd[2001]: Started Seamless ssh-agent for YubiKeys.
Apr 26 13:04:10 worker yubikey-agent[2014]: 2024/04/26 13:04:10 Connecting to the YubiKey...
Apr 26 13:04:11 worker yubikey-agent[2014]: 2024/04/26 13:04:11 agent 13: pin prompt: pinentry: unexpected response: "S ERROR gtk2.isatty 83918950 "

gpgconf

gpg:OpenPGP:/usr/bin/gpg
gpgsm:S/MIME:/usr/bin/gpgsm
keyboxd:Public Keys:/usr/lib/gnupg/keyboxd
gpg-agent:Private Keys:/usr/bin/gpg-agent
scdaemon:Smartcards:/usr/lib/gnupg/scdaemon
tpm2daemon:TPM:/usr/lib/gnupg/tpm2daemon
dirmngr:Network:/usr/bin/dirmngr
pinentry:Passphrase Entry:/usr/bin/pinentr

Workaround

Archlinux

git clone https://aur.archlinux.org/yubikey-agent.git
git checkout f827e4d # v1.5.0
makepkg -si

Related

https://github.com/gopasspw/gopass/issues/1879