更新 initial.sh

main
AhFei 2023-12-15 21:51:59 +08:00
parent 948c82fcfa
commit 3d097a48cb
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ echo "${nml_user_name}:${password}" | chpasswd
# sed -i 's/PermitRootLogin yes/PermitRootLogin no/g' "${SSHCONF}" # sed -i 's/PermitRootLogin yes/PermitRootLogin no/g' "${SSHCONF}"
cat > /etc/ssh/sshd_config.d/custom_sshd.conf << EOF cat > /etc/ssh/sshd_config.d/custom_sshd.conf << EOF
Port ${new_port} Port ${new_port}
PermitRootLogin yes PermitRootLogin no
EOF EOF
timedatectl set-timezone Asia/Shanghai timedatectl set-timezone Asia/Shanghai