[Solved!] SSH: no matching host key type found. Their offer: ssh-rsa

I am using 19.07:
[Powered by LuCI openwrt-19.07 branch (git-21.189.23240-7b931da)](https://github.com/openwrt/luci) / OpenWrt 19.07.8 r11364-ef56c85848

ssh root@12.168.1.1 
Unable to negotiate with 192.168.1.1 port 22: no matching host key type found. Their offer: ssh-rsa
ssh -V
OpenSSH_8.9p1 Debian-3, OpenSSL 1.1.1n  15 Mar 2022

Is my router be hacked? or something wrong?
and how to logon and reconfigure dropbear?
Thanks!!

1 Like

Try
ssh -oHostKeyAlgorithms=+ssh-rsa root@12.168.1.1

1 Like

does it only once or each time I ssh my router?
is there some settings?

HostKeyAlgorithms refers to openwrt or my pc?

Dropbear on OpenWrt offers an ssh-rsa key, which is rejected by openssh because it is not in it's list of accepted keys (implicit or in ssh_config). Using this commandline option the config is overruled in you local ssh client.
Don't know if you have to specify it each time, maybe it is stored in known_hosts.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.