From 291549d0c90e713c44c03e60bb3187e737f58fe8 Mon Sep 17 00:00:00 2001 From: "tiago.ferreira" Date: Thu, 26 Mar 2026 00:41:52 +0000 Subject: [PATCH] Atualizar update_srv1.sh --- update_srv1.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/update_srv1.sh b/update_srv1.sh index 78e9afc..ef5ca8c 100644 --- a/update_srv1.sh +++ b/update_srv1.sh @@ -3,12 +3,13 @@ wget https://git.tmferreira.tec.br/tiago.ferreira/ASOR/raw/branch/main/Confs/srv # wget https://git.tmferreira.tec.br/tiago.ferreira/ASOR/raw/branch/main/Confs/srv1/interfaces -O /etc/network/interfaces --no-check-certificate --no-cache wget https://git.tmferreira.tec.br/tiago.ferreira/ASOR/raw/branch/main/Confs/srv1/nftables.conf -O /etc/nftables.conf --no-check-certificate --no-cache -#sed -i s'/enp0s8/enp0s3/g' /usr/local/bin/sync-update +sed -i s'/enp0s8/enp0s3/g' /usr/local/bin/sync-update #wget https://raw.githubusercontent.com/tmferreira-ti/SSORI/refs/heads/main/configs/sshd_config -O /etc/ssh/sshd_config --no-check-certificate --no-cache systemctl restart netwoking -#apt update -#apt install ssh -y -#sed -i 's/^#PermitRootLogin\s\+prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config +apt update +apt install ssh -y +systemctl restart ssh +sed -i 's/^#PermitRootLogin\s\+prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config #apt autoremove --purge isc-dhcp-server -y #apt install isc-dhcp-server -y #wget https://git.tmferreira.tec.br/tiago.ferreira/ASOR/raw/branch/main/Confs/srv1/dhcpd.conf -O /etc/dhcp/dhcpd.conf --no-check-certificate --no-cache