Hi,
I've been using GnuPG, 2.1.7 and prior, as my OpenSSH agent without any
problems. It seems that after upgrading to 2.1.8 as well as 2.1.9, this now
fails as follows:
[hloeung@ragnar tmp]$ gpg-agent --homedir /home/hloeung/.gnupg --daemon -v --
enable-ssh-support --debug-level advanced --debug-all --no-detach
gpg-agent[26764]: reading options from '/home/hloeung/.gnupg/gpg-agent.conf'
gpg-agent[26764]: enabled debug flags: command ipc
gpg-agent[26764]: listening on socket '/home/hloeung/.gnupg/S.gpg-agent'
gpg-agent[26764]: listening on socket '/home/hloeung/.gnupg/S.gpg-agent.ssh'
SSH_AUTH_SOCK=/home/hloeung/.gnupg/S.gpg-agent.ssh; export SSH_AUTH_SOCK;
gpg-agent[26765]: gpg-agent (GnuPG) 2.1.9 started
gpg-agent[26765]: ssh handler 0x7f542a3fe700 for fd 5 started
gpg-agent[26765]: ssh request 1 is not supported
gpg-agent[26765]: ssh request handler for request_identities (11) started
gpg-agent[26765]: ssh request handler for request_identities (11) ready
gpg-agent[26765]: ssh handler 0x7f542a3fe700 for fd 5 terminated
[hloeung@ragnar tmp]$ ssh-add -l
error fetching identities for protocol 1: agent refused operation
error fetching identities for protocol 2: invalid format
The agent has no identities.