From 0ec68abde9acf69b5da5f1e17c22ae9f7a67de30 Mon Sep 17 00:00:00 2001 From: xiaoz Date: Sun, 12 Mar 2023 12:44:36 +0800 Subject: [PATCH] =?UTF-8?q?ufw=E5=BC=80=E6=9C=BA=E5=90=AF=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init_debian.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init_debian.sh b/init_debian.sh index a5d6e6e..0a79f41 100644 --- a/init_debian.sh +++ b/init_debian.sh @@ -33,6 +33,10 @@ init_soft(){ #放行常见端口 ufw allow 80 ufw allow 443 + ufw allow 22 + + ufw enable + systemctl enable ufw } #初始化SSH配置