RUT240 No SSH after default reset

After doing a factory reset on my RUT240 I found that I could not connect to the device via SSH any more.
In putty I was given an error that the “Server’s host key is invalid”
Looking in the /etc/dropbear directory (from CLI) I noticed that there were only two keys available, and none of them for rsa: dropbear_ecdsa_host_key, dropbear_ed25519_host_key

So, to have access via SSH i had to create a new RSA key by using the following command:
dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key

After that I restarted the service dropbear: /etc/init.d/dropbear restart and it worked again.

The firmware of my router is: RUT2_R_00.07.06.16

I hope this helps if someone else have this problem

1 Like

Hello,

Thank you for sharing your experience and solution – your detailed steps are greatly appreciated. It could certainly help others who encounter the same issue after a factory reset.

Best regards,

This topic was automatically closed after 15 days. New replies are no longer allowed.