I get the error 'no matching host key type found. Their offer: ssh-rsa' when trying to connect with SSH

I get the error "no matching host key type found. Their offer: ssh-rsa" when trying to connect with SSH

Overview

Note

Workarounds

For example:

ssh -i key.pem shell@3.252.167.165 -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa

HostKeyAlgorithms = +ssh-rsa
PubkeyAcceptedAlgorithms = +ssh-rsa

Related articles