From de00342631c4d3f32558fbf3b371fb3f586eae77 Mon Sep 17 00:00:00 2001 From: "tiago.ferreira" Date: Thu, 26 Mar 2026 00:43:07 +0000 Subject: [PATCH] Atualizar update_srv2.sh --- update_srv2.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/update_srv2.sh b/update_srv2.sh index 98d3503..ee4c99b 100644 --- a/update_srv2.sh +++ b/update_srv2.sh @@ -2,14 +2,16 @@ wget https://git.tmferreira.tec.br/tiago.ferreira/ASOR/raw/branch/main/Confs/srv2/interfaces --no-check-certificate --no-cache #wget https://raw.githubusercontent.com/tmferreira-ti/SSORI/refs/heads/main/configs/sshd_config -O /etc/ssh/sshd_config --no-check-certificate --no-cache -#apt update -#apt install ssh -y -#for i in {10..1}; do -# echo -ne "Aguarde $i\033[0K\r" -# sleep 1 -#done -#sed -i 's/^#PermitRootLogin\s\+prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config systemctl restart networking + +apt update +apt install ssh -y +for i in {10..1}; do + echo -ne "Aguarde $i\033[0K\r" + sleep 1 +done +sed -i 's/^#PermitRootLogin\s\+prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config +systemctl restart ssh #apt install bind9 -y #wget https://github.com/tmferreira-ti/ASOR/raw/refs/heads/main/Confs/srv2/dns/named.conf.options -O /etc/bind/named.conf.options