SSH Unable to Negotiate to Beep (No matching KEX)

Entering:
ssh -o HostKeyAlgorithms=+ssh-rsa root@10.129.79.186

Returns:
Unable to negotiate with 10.129.79.186 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1

Then when I enter:
ssh -o KexAlgorithms=+diffie-hellman-group1-sha1 root@10.129.79.186

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

Is my commands wrong or something wrong with the host. Maybe another similar issue with connecting to legacy hosts from an up-to-date Kali box? Thank you for the help.

1 Like

I guess this is solved by the time of my answer but if anyone else falls into this pit. Try adding both flags:

ssh -oKexAlgorithms=+diffie-hellman-group-exchange-sha1 -oHostKeyAlgorithms=+ssh-rsa root@10.10.10.7