-
-
Save stevejenkins/0c2687936f31cd0deda1 to your computer and use it in GitHub Desktop.
#MOVED TO: https://github.com/stevejenkins/unifi-linux-utils |
Using askpass
and disabling hostkey checking is insecure by nature.
Since it is supported out of the box, you should consider using public key authentication for passwordless access.
ssh passwords are much easier to brute force than keys or if someone sets up an account to make this script work as is, the device is easily compromised.
Hostkeys should be enforced and updating them on a different audit-able cycle from this script should be considered if security is a concern. To do that from the command line you can use ssh-keyscan
to collect relevant hostkeys. ssh-keygen -R
can be used to delete a hostkey programmatically if you find one that needs to be updated.
Hostkeys make sure that the remote device is the device you expect it to be. If the key changes and you had not done anything to cause the change, you should treat it as a rogue device.
Project moved to: https://github.com/stevejenkins/unifi-linux-utils
Can I reboot Ubiquiti Nanostation M2 using this script?
Hi Steve,
Found this very helpful.
How can i use this script to reboot up to 20 Ap's. Do i just add all ip's or i need to modify some things as i am new to scripting and linux.
Thanks.