From c195310d843572cbf725af155f7678ebbd63efe3 Mon Sep 17 00:00:00 2001 From: "tiago.ferreira" Date: Sat, 4 Oct 2025 12:54:57 +0000 Subject: [PATCH] Atualizar update_srv2.sh --- update_srv2.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/update_srv2.sh b/update_srv2.sh index 5565fe9..5a02a06 100644 --- a/update_srv2.sh +++ b/update_srv2.sh @@ -2,6 +2,14 @@ wget https://raw.githubusercontent.com/tmferreira-ti/ASOR/main/Confs/srv2/interfaces -O /etc/network/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 + #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