OpenWrt Forum Archive

Topic: Is it posssible to create router password without Luci and Telnet?

The content of this topic has been archived on 8 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello everyone! I need to load my firmware to 28 different routers. Some routers has Luci, some not (like dir615e4). I will use ImageBuilder to customize all this firmwares, so:

is it possible to create router pass (to access via SSH) using some kind of bash script or uci?

I can just place script to autorun and they will create password automatically at first boot and will save my time.
Thanks for answers.

The hashed password is in /etc/shadow.  If you clone this file to all the routers they will all have the same root password.

The discussion might have continued from here.