This commit is contained in:
Sergey Mazein
2024-01-19 10:29:35 +03:00
parent ab3c3136a7
commit e5c281beb0
3 changed files with 121 additions and 4 deletions
+3 -3
View File
@@ -15,7 +15,7 @@ sudo apt update
sudo apt upgrade -y
echo -e "${C_LGn}Installation of necessary components ...${RES}"
sudo apt install openssh-server mc htop qemu-guest-agent curl lsb-release wget git jq lz4 build-essential -y
sudo apt install openssh-server mc htop tmux curl lsb-release wget git jq lz4 build-essential -y
sudo sed -i 's/#Port 22/#Port 22\n\nAllowUsers root@92.255.251.110 root@158.69.30.144 root@65.109.116.119 sem\n/' /etc/ssh/sshd_config
sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes\n/' /etc/ssh/sshd_config
@@ -30,8 +30,8 @@ sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes\n/' /etc/s
. /etc/os-release
wget https://repo.zabbix.com/zabbix/6.0/${ID}/pool/main/z/zabbix-release/zabbix-release_6.0-5+${ID}${VERSION_ID}_all.deb
sudo dpkg -i zabbix-release_6.0-5+${ID}${VERSION_ID}_all.deb
wget https://repo.zabbix.com/zabbix/6.0/${ID}/pool/main/z/zabbix-release/zabbix-release_6.0-4+${ID}${VERSION_ID}_all.deb
sudo dpkg -i zabbix-release_6.0-4+${ID}${VERSION_ID}_all.deb
sudo apt update
sudo apt upgrade -y
sudo apt install zabbix-agent -y