I have several GL-MT300N-V2 routers I’m trying to configure in an automatic way. Connecting to their wifi and logging in via ssh is easy enough, but I’m unable to figure out how to set the admin password from the cli.
I’ve searched the configs for where the password is stored but didn’t find it, and tried to set it using the passwd command, which changed the ssh login password, but it the web interface password didn’t change with it. I’ve considered sending a POST request to http://192.168.8.1/cgi-bin/api/router/initpwd but I’d prefer to do everything over ssh if possible, at the moment this solution is my last resort.
I currently only have remote access, so I'm concerned about upgrading the firmware to 4.x and breaking something as it would be hard to recover from without travelling back to it. I'm also not sure how I would upgrade it to 4.x without being able to log into the gl.inet UI.
If you are able to assist me with it running on 3.x, I'd appreciate it. Even if you're not able to straight away, as it's not urgent, but I'd like to be able to change it in the next few weeks if possible.
I currently have a few Mudi E750 routers running 4.3.19. Would you please send me the instructions on how to change the admin password via SSH. Thank you for your time.