I observe some weird behaviour with regard to use of forwarded keys.
I access my router (OpenWRT 22.03) over SSH enabling key forwarding:
ssh -A root@192.168.xx.yy -p 2222
The socket for agent connection is successfully created and has proper rights:
root@gw-bsb:~/.ssh# env | grep SSH
SSH_AUTH_SOCK=/tmp/dropbear-19ec2148/auth-cea63dfa-6
SSH_TTY=/dev/pts/0
root@gw-bsb:~# ls -l /tmp/dropbear-19ec2148/auth-cea63dfa-6
srwxr-xr-x 1 root root 0 Jan 8 00:55 /tmp/dropbear-19ec2148/auth-cea63dfa-6
Key are also visible to the ssh client:
root@gw-bsb:~/.ssh# ssh-add -v -l
1024 SHA256:xx yy (RSA)
256 SHA256:zz yy (ED25519)
2048 SHA256:xxx iii (RSA)
However client is not able to use keys in real ssh connections:
$ ssh -v git@github.com
debug1: rekey in after 134217728 blocks
debug1: get_agent_identities: ssh_fetch_identitylist: agent refused operation
OpenWRT uses a dropbear implementation of ssh client:
root@gw-bsb:~/.ssh# dropbear -V
Dropbear v2022.82
Older versions of OpenWRT didn't have problems with the key forwarding.
How can I fix this?