I will put here the ssh commands for Ubiquiti WiFi AP that I use.
If you don't know how to obtain the IP Address of your APs, you can use the Ubiquiti Device Discovery tool to find out.
user@host:~$ ssh -l ubnt 192.168.1.20
Here I'll show how to obtain or set the ssh password for a device registered in the Network Management Controller.
To download the latest firmware, it may be useful to know how to adjust network settings.
UBNT-BZ.v4.3.21# ip addr add 192.168.1.143/24 dev br0
UBNT-BZ.v4.3.21# ip route del default
UBNT-BZ.v4.3.21# ip route add default via 192.168.1.254
UBNT-BZ.v4.3.21# echo "nameserver 192.168.1.254" > /etc/resolv.conf
If you wish to update the firmware from ssh, first go to the https://www.ui.com/download/ web page. And get the URL of your firmware device.
UBNT-BZ.v4.3.20# upgrade https://dl.ui.com/unifi/firmware/BZ2/4.3.21.11325/BZ.ar7240.v4.3.21.11325.200922.1739.bin
Downloading firmware from 'https://dl.ui.com/unifi/firmware/BZ2/4.3.21.11325/BZ.ar7240.v4.3.21.11325.200922.1739.bin'.
Scheduling firmware upgrade...
Waiting for upgrade to start...
UBNT-BZ.v4.3.21# info
UBNT-BZ.v4.3.21# syswrapper.sh restore-default
UBNT-BZ.v4.3.21# set-default
UBNT-BZ.v4.3.21# mca-cli
UniFi# set-inform http://your.unifi.controller:8080/inform
UBNT-BZ.v4.3.21# passwd
UBNT-BZ.v4.3.21# reboot
Contact :