configure
<COMMAND TO EXECUTE 1>
<COMMAND TO EXECUTE 2>
<COMMAND TO EXECUTE 3...>
commit
save
exit
# Disable password-based auth
set service ssh disable-password-authentication
# Install Public Key. Copy public key to the router (e.g. in /tmp/blah.pub), then do:
loadkey '<USERNAME>' '<PATH_TO_PUBLIC_KEY>'
# Delete public key
delete system login user "<USERNAME>" authentication public-keys '<PUBLIC_KEY_NAME>'
# List user info
show system login user '<USERNAME>'
# List interfaces
show interfaces
# show storage
show system storage
# list ssh keys
show configuration commands | egrep public-keys
# show current version
show version
# show current storage
show system image storage
# upgrade image
add system image 'https://dl.ubnt.com/.../firmware.tar'
# confirm it worked; be sure to reboot when done
show system image
# reboot
reboot
# shutdown
shutdown