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