This commit is contained in:
2023-03-20 22:58:16 +03:00
parent 2ec56495b5
commit 7bfeb92f00
2 changed files with 95 additions and 2 deletions
+3 -2
View File
@@ -18,6 +18,7 @@ echo -e "${C_LGn}Installation of necessary components ...${RES}"
sudo apt install openssh-server mc htop qemu-guest-agent curl lsb-release wget -y
sudo sed -i 's/#Port 22/#Port 22\n\nAllowUsers root@92.255.251.110 root@51.77.60.29 sem\n/' /etc/ssh/sshd_config
sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes\n/' /etc/ssh/sshd_config
#write out current crontab
crontab -l > mycron
@@ -29,8 +30,8 @@ rm mycron
. /etc/os-release
wget https://repo.zabbix.com/zabbix/6.2/${ID}/pool/main/z/zabbix-release/zabbix-release_6.2-2+${ID}${VERSION_ID}_all.deb
sudo dpkg -i zabbix-release_6.2-2+${ID}${VERSION_ID}_all.deb
wget https://repo.zabbix.com/zabbix/6.2/${ID}/pool/main/z/zabbix-release/zabbix-release_6.2-4+${ID}${VERSION_ID}_all.deb
sudo dpkg -i zabbix-release_6.2-4+${ID}${VERSION_ID}_all.deb
sudo apt update
sudo apt upgrade -y
sudo apt install zabbix-agent -y