I set up my router with OpenWRT and LuCI last year and from memory I've never been able to SSH in to it but that hasn't been a problem until now.
I want to install some software but I can't login via SSH.
I can login to Web UI as root fine but when I try to connect via SSH it tells me wrong password. I had OpenSSH installed at some point and after some reading this disables root login by default so assumed it was due to that, so I've removed the OpenSSH server leaving just Dropbear installed but hasn't made a difference. I've removed Dropbear and reinstalled to no avail.
From reading various docs there should be a Dropbear configuration screen under System > Administration but there isn't one. All I have is reset root password (which I've also tried but still doesn't work).
I've been looking at trying to get a file editor installed via LuCI web admin, then I'd be able to go in to OpenSSH server config and permit root login but I can't find anything that allows me to do that.
What options do I have? I'd rather not have to reinstall OpenWRT as I've got a lot of DNS/Firewall bits set up.
Have you tried something like WinSCP? You can edit files there. It will probably fail for the same reason SSH fails, but wouldn't harm to try.
If all fails and you end up having to reset or reinstall, you can always back up the settings, and then use the individual config files from the back up archive you selectively replicate the good parts of the settings to the new installation. That sure would include some work but can be a last resort.
There's no SSH Access or SSH-Keys tabs at all. The only tab is Router Password which doesn't appear to be linked to the SSH login or something else has gone funny with SSH.
Interestingly sometimes when opening PuTTY I get no connection to the router at all (i.e. can't establish a connection over SSH, web works while this is happening), although this is sporadic. Other times I'm prompted for password. EDIT: This is because I uninstalled OpenSSH, I looked at the processes tab and Dropbear wasn't listed which I assume is because there were no instances.
If you flashed an older version, they used Telnet. If that's the case, it would be a good reason to update, as you will not find much support for the older versions of OpenWrt. Maybe you have a telnet instance running.
You wouldn't have to reinstall OpenWrt in any case:
I think I took a build from somewhere with LuCI already set up as I was looking for something with OpenVPN already set up and configured, although I don't actually need that now.