更新 initial.sh
parent
948c82fcfa
commit
3d097a48cb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue