Pre-install proxmox
This commit is contained in:
@@ -15,10 +15,9 @@ sudo apt update
|
||||
sudo apt upgrade -y
|
||||
echo -e "${C_LGn}Installation of necessary components ...${RES}"
|
||||
|
||||
sudo apt install nginx openssh-server mc htop tmux curl lsb-release wget git jq lz4 build-essential certbot python3-certbot-nginx -y
|
||||
sudo apt install nginx openssh-server mc htop tmux curl lsb-release wget git jq lz4 build-essential certbot python3-certbot-nginx iptables-persistent -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 's/#PermitRootLogin prohibit-password/PermitRootLogin yes\n/' /etc/ssh/sshd_config
|
||||
|
||||
. /etc/os-release
|
||||
|
||||
@@ -98,3 +97,5 @@ sudo useradd -s /bin/bash -d /home/sem/ -m -G sudo sem
|
||||
usermod -aG sudo sem
|
||||
echo "Вводим пароль для нового пользователя"
|
||||
sudo passwd sem
|
||||
|
||||
nano /usr/local/bin/renew-pve-certs.sh
|
||||
Reference in New Issue
Block a user