Proxmox setup

This commit is contained in:
Sergey Mazein
2025-10-19 19:22:34 +03:00
parent 80933c32a8
commit 98dfb2fc03
2 changed files with 22 additions and 1 deletions
+2
View File
@@ -18,6 +18,8 @@ echo -e "${C_LGn}Installation of necessary components ...${RES}"
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@158.69.30.149 root@167.114.172.204 root@158.69.6.146 root@213.239.194.132 root@92.255.251.110 root@158.69.30.144 root@65.109.116.119 sem\n/' /etc/ssh/sshd_config
sudo sed -i -e '/^AllowUsers/ { /root@144\.217\.201\.167/! { s/$/ root@144.217.201.167/; h; } }' /etc/ssh/sshd_config
sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes\n/' /etc/ssh/sshd_config
#write out current crontab