![](https://static.wixstatic.com/media/68165d_56cc2e7d5531490c91bf57de4347e5ed~mv2.png/v1/fill/w_980,h_980,al_c,q_90,usm_0.66_1.00_0.01,enc_auto/68165d_56cc2e7d5531490c91bf57de4347e5ed~mv2.png)
Mô hình:
- 01 máy tính Windows 10 cài Controller để quản lý các AP Unifi
- 01 máy cài Ubuntu chạy script auto reboot Unifi
Bước 1: Lấy Username và Password để ssh vào AP Unifi
Truy cập vào Controller > Settings > System Settings > Controller Configuration > Device SSH Authentication
Bước 2: Cài sshpass trên Ubuntu
# sudo get-install sshpass
Bước 3: Tạo crontab trên Ubuntu
# sudo crontab -e
0 1 * * * sshpass -p "mk123456" ssh -oStrictHostKeyChecking=no admin@192.168.1.10 reboot
Comments