Wednesday, January 25, 2023

SSH : No matching host key type found. Their offer: ssh-rsa,ssh-dss

Got this while connecting to my mikrotik router via ssh
 
Unable to negotiate with <ip address> port <ssh port>: no matching host key type found. Their offer: ssh-rsa,ssh-dss
 
A workaround posted on Atlassian shows how to set an old signature algorithm to be used by your ssh client.
 
Added this in my ~/.ssh/config
 
 Host bitbucket.org
    HostkeyAlgorithms +ssh-rsa
    PubkeyAcceptedAlgorithms +ssh-rsa

Read more here:
https://community.atlassian.com/t5/Bitbucket-articles/OpenSSH-8-8-client-incompatibility-and-workaround/ba-p/1826047

1 comment:

  1. This works with "client_global_hostkeys_private_confirm: server used untrusted RSA signature algorithm ssh-rsa for key 0, disregarding" too!

    This is when SSH works but SCP doesn't.

    ReplyDelete

SSH : No matching host key type found. Their offer: ssh-rsa,ssh-dss

Got this while connecting to my mikrotik router via ssh   Unable to negotiate with <ip address> port <ssh port>: no matching hos...