DD-WRT with both https and sshd running in port 443

dd-wrtssh

I have a buffalo router with dd-wrt v24 SP2.
After setting up the basic stuff, I enabled the https access to the admin page.
Several days later, while setting up remote ssh, I changed the default port from 22 to 443.

And now..well 🙂 You got the picture 🙂
I can ssh the router but I have no web access to it's admin page.

Before rushing to a cold-hearted configuration reset, is there any way to change the ssh port from a shell? Or make dd-wrt accessible thru basic http?

Best Answer

Configuration is likely in the /etc/ directory tree, likely in /etc/config. Try grep 443 /etc/* /etc/*/* to see if you can find the appropriate file.

You may have vi or nano installed to edit files already. The scripts to stop and start services should be in /etc/init.d. Running the script with restart as the parameter may restart the service.

You may be able to start the web service by stopping the ssh service and starting the web service. Your ssh connection should stay up even if you stop the service. You should then be able to change the sshd port in the web interface. The web interface may also be available on port 80.

Related Question