Can't connect to router using ssh

I have bought a router which was QWRT installed in it. I am new to this. I am not 100% sure, but I am pretty sure it is a variant of OpenWRT.

Now before modifying the codebase I want to login there, and take backup everything, like not just the etc. I want to take snap of system, root and everything. And I also want to run some shell command there, so that I can confirm the device configurations and etc. That's why I want to do a ssh there. I have added the public key in the luci web interface under dropbear instance, I have the public and private keys in my system. But when I try to connect to the router using ssh. I get unable to negotiate error, their offer ssh-rsa.

Please take a look into the following image. What can I do?

Here are some system details:

System
Hostname          QWRT
Host Model        zebra-69
Architecture      MediaTek MT7620N ver:2 eco:6 x 1
Target Platform   ramips/mt7620
Firmware Version  QWRT r66-86000ae1 / LuCI Master (git-24.170.42175-86000ae)
Kernel Version    4.4.302
Local Time        Tue Jun 18 22:26:59 2024
Uptime            0h 13m 6s
Average Load      0.00, 0.03, 0.06

And here is how I am generating the keys:

ssh-keygen -t rsa -b 4096

It appears you are using firmware that is not from the official OpenWrt project.

When using forks/offshoots/vendor-specific builds that are "based on OpenWrt", there may be many differences compared to the official versions (hosted by OpenWrt.org). Some of these customizations may fundamentally change the way that OpenWrt works. You might need help from people with specific/specialized knowledge about the firmware you are using, so it is possible that advice you get here may not be useful.

You may find that the best options are:

  1. Install an official version of OpenWrt, if your device is supported (see https://firmware-selector.openwrt.org).
  2. Ask for help from the maintainer(s) or user community of the specific firmware that you are using.
  3. Provide the source code for the firmware so that users on this forum can understand how your firmware works (OpenWrt forum users are volunteers, so somebody might look at the code if they have time and are interested in your issue).

If you believe that this specific issue is common to generic/official OpenWrt and/or the maintainers of your build have indicated as such, please feel free to clarify.

1 Like

Not Openwrt, but it can most likely be fixed using ssh parameters (-o ?) when connecting.

I understand wanting to backup before you jump in.

What did you get? It might have dual-boot and backup is unnecessary.

Thanks for your support.

Tried but didn't work.

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