Skip to Content

no matching host key type found. Their offer: ssh-rsa,ssh-dss [preauth]

’no matching host key type found. Their offer: ssh-rsa,ssh-dss [preauth]’ got this error in /var/log/secure 

Check if  ssh_host_rsa_key / ssh_host_dsa_key’is enabled on your /etc/ssh/sshd_config

If not enabled add or uncomment the following in /etc/ssh/sshd_config

 

HostKey /etc/ssh/ssh_host_rsa_key

HostKey /etc/ssh/ssh_host_dsa_key