From 3d097a48cbc82d5ca7465014d2ff2c7814cd96be Mon Sep 17 00:00:00 2001 From: AhFei Date: Fri, 15 Dec 2023 21:51:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20initial.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- initial.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/initial.sh b/initial.sh index cebfd9d..67ac5ca 100644 --- a/initial.sh +++ b/initial.sh @@ -42,7 +42,7 @@ echo "${nml_user_name}:${password}" | chpasswd # sed -i 's/PermitRootLogin yes/PermitRootLogin no/g' "${SSHCONF}" cat > /etc/ssh/sshd_config.d/custom_sshd.conf << EOF Port ${new_port} -PermitRootLogin yes +PermitRootLogin no EOF timedatectl set-timezone Asia/Shanghai