ssh: no matching host key type found

Hi All,
i am using Redhat 9.0 and :
$ ssh -V
OpenSSH_8.7p1, OpenSSL 3.0.1 14 Dec 2021
after i run ssh command on an ip address, that i can connect to it by putty, i get the below error message:

Unable to negotiate with port 22: no matching host key type found. Their offer: ssh-dss,ssh-rsa

any recommendation please?

While this is not an Ansible question you can allow other types via SSH args like the following example for legacy hardware.

ssh -o KexAlgorithms=+diffie-hellman-group1-sha1 -o HostKeyAlgorithms=+ssh-dss -c aes256-cbc