I use gentoo linux amd64 with gnupg-2.1.8 and OpenSSH_6.9p1-hpn14v5
After updating to gnupg-2.1.8, gpg-agent will no longer spawn pinentry program
and allow SSH pubkey logins. ssh-add -l will also complain: error fetching
identities for protocol 2: invalid format
ssh -v user@host additionally says this: debug1: pubkey_prepare:
ssh_fetch_identitylist: invalid format
reverting to gnupg-2.1.7 fixes the issue.
The same bug report in Debian:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798956
and in Arch:
https://bugs.archlinux.org/task/46395