Installing UniFi Controller on AWS

Security Group

Type Protocol Port Range Source
SSH TCP 22 Anywhere 0.0.0.0/0
Custom TCP Rule TCP 8080 Anywhere 0.0.0.0/0
Custom TCP Rule TCP 8443 Anywhere 0.0.0.0/0
Custom TCP Rule TCP 8843 Anywhere 0.0.0.0/0
Custom TCP Rule TCP 8880 Anywhere 0.0.0.0/0
Custom UDP Rule UDP 3478 Anywhere 0.0.0.0/0

Terminal / Command Prompt Commands

Give required permissions to our Key file.

chmod 400 /location/to/UniFiController.pem

Connect to server using SSH. Change the <elastic-ip> with your elastic IP.

ssh -i “/location/to/UniFiController.pem" ubuntu@

Add the Ubiquiti repository to the server’s repository list

echo "deb http://www.ubnt.com/downloads/unifi/debian unifi5 ubiquiti" | sudo tee -a /etc/apt/sources.list

Add the Ubiquiti GPG Key

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50

Update the server’s repository information

sudo apt-get update

Install the UniFi Controller on the server.

sudo apt-get install unifi

Disconnect from the server

Exit