A team member just upgraded our AWS EC2 instance from 20.04 LTS to 22.04 LTS, and ssh connections broke as a result. Now when I try to open a session (in MobaXterm) I get:
Server refused our key No supported authentication methods available (server sent: publickey)
I have a public key added to ~/.ssh/authorized_keys on the EC2 box, and I have been using a corresponding .ppk file on my Windows desktop for my private key. This has been working flawlessly, until this "upgrade".
What happened, and how do I go about fixing it?
UPDATE: The issue is that RSA keys are no longer supported. You need keys generated by a more secure algorithm, such as ed25519.
RSA SHA-1
hash algorithm for older connections. – Artur Meinild Oct 03 '22 at 14:13