hello
I have a RUTX12 device.
I have ssh access but no web access.
Now my question is this
How can I enable web access via ssh?
Hello,
Thank you for reaching out.
By default, access to the router’s Web UI is enabled. If it was disabled and you need to enable HTTP or HTTPS access again, you can do it via SSH by executing UCI commands.
You can read about the UCI commands on our wiki page:
https://wiki.teltonika-networks.com/view/UCI_command_usage
It also depends on how you connect to the router’s WEB UI – via public IP address or private.
On the first scenario, router is connected to the internet and is using a public IP address. To connect to WEB UI we need to open the port for HTTPS on the router’s firewall. For example, I opened the firewall configuration file and noticed that the firewall rule called
“Enable_HTTPS_WAN” is disabled and has an ID value of 17. I enable it by entering the following commands:
uci set firewall.17.enabled=1
uci commit firewall
/etc/init.d/firewall restart
Bear in mind in this case it is more secure to use HTTPS instead of HTTP. Yet, enabling remote HTTPS access makes your device reachable from WAN, this might pose a security risk, especially if you are using a weak or default user password.
In the second scenario, I am trying to access the router’s WEB UI, which is on my local network and is using a private IP address. If WEB UI access is disabled on the router, it is possible to enable it with the following UCI commands:
uci set uhttpd.main.enable_http=1
uci set uhttpd.main.listen_http=80
uci commit uhttpd
/etc/init.d/uhttpd restart
There is also another quite simple way to enable WEB access - using SMS messages. If SMS Utilities are enabled on the router and there is a working SIM card inserted – you can send an SMS message to the router to enable its WEB access. By default, the message would consist of the password that you use to connect to the router and the word “webon”. For example: Password123 webon
You can read more about the SMS utilities on our wiki page:
Now you should be able to access the router WEB user interface.
However, if none of these commands help, there is also an option to reset the router’s settings to factory default. By doing so, you will lose all the configurations that you have set before. Also, if the router is in a remote location, and you connect to it remotely, you might lose connection to the device.
I hope this information helps you to connect to your router’s WEB user interface
Kind regards.
This topic was automatically closed after 15 days. New replies are no longer allowed.