ssh: no matching host key type found

160 views
Skip to first unread message

Azadeh Amirhosseini

unread,
Jun 12, 2023, 2:05:13 PM6/12/23
to Ansible Project
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 <ip address> port 22: no matching host key type found.   Their offer: ssh-dss,ssh-rsa

any recommendation please?

Andrew Latham

unread,
Jun 12, 2023, 4:55:51 PM6/12/23
to ansible...@googlegroups.com
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

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/813a9ed6-e6cd-42c1-9af4-3c822589b07cn%40googlegroups.com.


--
- Andrew "lathama" Latham -
Reply all
Reply to author
Forward
0 new messages