For some reason I ran into an issue where I can not remove authorized SSH Keys in AirOS version 6.3. It redirects to a 404 page and then to the main page.
Attempting to remove SSH keys in AirOS404 Error while attempting to remove SSH keys
Thankfully, we can still remove the authorized keys from the command line. For more information on making changes over SSH, refer to the following post.
nvram_
nvram_get nvram_set
nvram_get
Usage:
nvram_get [] []
command:
rt2860_nvram_show - display rt2860 values in nvram
rtdev_nvram_show - display 2nd ralink device values in nvram
show - display values in nvram for
gen - generate config file from nvram for
renew - replace nvram values for with
clear - clear all entries in nvram for
platform:
2860 - rt2860
rtdev - 2nd ralink device
file:
- file name for renew command
nvram_get show
2860
nvram_get show 2860
Log into the GUI and verify everything looks correct. Under the network tab it was still showing that it had a static address, although it pulled a DHCP IP.
The following rule rejects access to port 22 on all devices except ones on the 192.168.1.0/24 network. Note the “!”. This command can be useful for a WHM/cPanel server to limit ssh access.
To delete a rule use the -D option with the Chain and the line number. So to delete the first rule in the example output above, we would specify the INPUT chain and the the line number 1
Upgrading the firmware via the command line is super easy. Basic steps are
Upload firmware file to radio using ftp, scp, or download directly to radio using wget
Move the firmware the /tmp and rename to fwupdate.bin
Upgrade the firmware by running
ubntbox fwupdate.real -m fwupdate.bin
More Detail explanation
Downloading Firmware to Radio
There are a couple of ways to get the firmware uploaded to the radio
Download from Ubiquiti’s website and upload via ftp, scp, filezilla or like
Download directly to the radio using wget
Using wget
ssh into the radio. Change username and ip address as needed.
ssh ubnt@192.168.1.20
cd to the /tmp directory
cd /tmp
Find the firmware file on Ubiquiti’s website, accept the terms, copy the link and paste the link in the terminal after wget. Replace the below link with the appropriate firmware link.