After messing around with the dropbear configuration and rebooting I am no longer able to ssh into the box.
Is there any way to access the configuration via the GUI or do I need to do a reset?
After messing around with the dropbear configuration and rebooting I am no longer able to ssh into the box.
Is there any way to access the configuration via the GUI or do I need to do a reset?
Yes you can, logging into the GUI is completely separate from dropbear.
I meant can I configure dropbear via the GUI?
There's Luci addon for running cli commands from the browser.
Should I expect to find it here?
I understood the OP's issue to be they already messed up running commands via CLI - not sure why they'd wanna log into the web GUI just to run the same commands again.
Yes you can. Browse to: System > Administration > SSH Access.
To roll back whatever got messed up, I guess....?
luci-app-commands
is the app that allows defining and running rather simple cli commands from browser.
One easy suggestion as a command would be to copy the default dropbear config from /rom
, assuming that you have a "normal" device with overlay.
cp /rom/etc/config/dropbear /etc/config
After rummaging around, I managed to switch on Advanced mode for menus and came across access control and there is an option to Enable key-based authentication but I guess you need to provide Public keys to be able to use this but I don't know what to enter. Any suggestions?
I also noticed an option to enable Telnet, which I did, but when I tried to login, I entered my userid, admin, and then the password I use at the GUI, but then got the response
login: can't change to directory to '/user'
and then the connection was closed.
Not sure what this is telling me....
User's home dir doesn't exist, or have wrong permissions ?
In general, key based auth is to be preferred. In a professional setting, password auth is usually even disabled.
You have to copy the public key of your keypair there. To generate a keypair, there are loads of how-tos, of course it also depends on if you use windows or linux. A common one to follow is https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent for example.
Or https://www.ssh.com/academy/ssh/keygen for a more in-depth documentation.
What "advanced mode" ???? What telnet???
To my knowledge, there is no special advanced mode for LuCI, and there is no telnet functionality installed in the normal OpenWrt.
which firmware you are actually having problems with?
Post output of
ubus call system board
This does not sound like official OpenWrt. In official OpenWrt, go to System--Administration--SSH Access and make sure that Allow Password Login and Allow Root Login With Password are both checked.
What is the output of:
ubus call system board
This topic was automatically closed after 2 days. New replies are no longer allowed.