I failed to configure AgentForwarding with PuTTY :(
PuTTY is newest 0.61 version. I have created public/private key pair for PuTTY, converted them to openssh format, added them to /root/.ssh/authorized_keys on both host1 and host2. On both hosts in /etc/ssh/sshd_config:
PermitRootLogin without-password AuthorizedKeysFile %h/.ssh/authorized_keys AllowAgentForwarding yes
On both hosts /root/.ssh/config contains
Host * ForwardAgent yes
In PuTTY configuration, option Connection/SSH/Auth/Allow agent forwarding [x] is checked on.
Whan I'm running pagent.exe with loaded keyfile, I can connect to host1 and host2 without password. But when I am connected to host1 and try to
ssh root@host2, I'm prompted for password. Variable $SSH_AUTH_SOCK is not set in my host1 session. What am I doing wrong?