Template for ssh and web password

26 views
Skip to first unread message

leoni...@gmail.com

unread,
Apr 28, 2021, 8:52:08 AM4/28/21
to open...@googlegroups.com

hi, is it possible to create a template to set a password for all Openwrt APs for both the ssh connection (es. with Putty and ap ip address) and the webpanel (http: // ap ip address)?

Ajay Tripathi

unread,
Apr 28, 2021, 10:04:42 AM4/28/21
to OpenWISP
Hi,


I don't think this is possible presently, since connections is a separate module.

Best,
Ajay T.

Federico Capoano

unread,
Apr 28, 2021, 11:46:11 AM4/28/21
to open...@googlegroups.com
If you're building your own firmware image, you should be doing this during compile time.

You could do it via templates only if the /etc/shadow file is the same for all your devices, in that case simply set the password you need to one of your devices, copy /etc/shadow from that device and define a default template in openwisp with a file that has /etc/shadow as path and its contents, assign it to every device but only after having tested it on at least one device.

This should do it.

BTW, changing passwords via OpenWISP will also be possible but only at 1 device at time, by using the commands feature which will be shipped in the future 1.0.x series, but the code is already working (to the best of my knowledge) and available here: https://github.com/openwisp/openwisp-controller/pull/421

Best regards
Federico Capoano


On Wed, Apr 28, 2021 at 7:52 AM <leoni...@gmail.com> wrote:

hi, is it possible to create a template to set a password for all Openwrt APs for both the ssh connection (es. with Putty and ap ip address) and the webpanel (http: // ap ip address)?

--
You received this message because you are subscribed to the Google Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/1a7001d73c2d%244a7efc70%24df7cf550%24%40gmail.com.
Reply all
Reply to author
Forward
0 new messages