I have setup an AlmaLinux9 server with SSHD. I have also generated a priv+pub key on my workstation, and when I check the algorithm used by my key it shows:
ssh-keygen -l -f myprivatekey.pem
2048 SHA256:p8qjW7xUG6CrB7I0edKIGoQarzHtTgqoHf7I32S7LcE testkey (RSA)
When I use this key to login from another AlmaLinux 9 workstation to the server, I can successfully login. When I try to use this same key from putty on a Windows client, the client says "Server refused our key", and the server secure log shows:
userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
What exactly is using ssh-rsa algorithm? If my key algorithm is SHA256, which I think is rsa-sha2-256 (which is a modern and secure algorithm), why is the server complaining about "ssh-rsa". I assume putty is using a seperate algorithm for the session, and my putty settings show:
This post explains that putty uses a seperate algorithm for the session, but where can I see what algorithm it is using? I think my screenshot from putty settings > advanced > ssh settings > encryption shows acceptable algorithms, but I don't see reference to ssh-rsa. So why is putting using ssh-rsa?
In case it's relevant, I'm using "extraPUTTY v0.30"