Fixed Windows warning: agent returned different signature type ssh-rsa (expected rsa-sha2-512)

On windows:
Run ssh-agent.exe
ssh-add
ssh

And you get the warning:



warning: agent returned different signature type ssh-rsa (expected rsa-sha2-512)

It is because ssh-agent on Windows is using an older signing algorithm that your sever is rejecting. The issue is with ssh-agent version on Windows

To fix:

Download the latest release from here and substitute the "install-sshd.ps1" script for this one.
Then run the replaced "install-sshd.ps1".

Comments