no matching host key type found. Their offer: ssh-rsa

Question

ssh root@192.168.43.159
Unable to negotiate with 192.168.43.159 port 22: no matching host key type found. Their offer: ssh-rsa

Answer

One shot:

ssh -oHostKeyAlgorithms=+ssh-rsa root@192.168.43.159

Default:

~/.ssh/config
Host *
ServerAliveInterval 120
ServerAliveCountMax 2

Host 192.168.43.159
    HostKeyAlgorithms=+ssh-rsa
0%