更新 'initial.sh'

main
AhFei 2023-01-16 03:31:51 +08:00
parent fcdff92345
commit cea8866fbe
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ echo `groups ${nml_user_name}`
# 修改ssh端口和禁止root登陆
cp ${SSHCONF} ${SSHCONF}.bak
sed -i 's/Port 22/Port ${new_port}/g' "${SSHCONF}"
sed -i "s/Port 22/Port ${new_port}/g" "${SSHCONF}"
sed -i 's/PermitRootLogin yes/PermitRootLogin no/g' "${SSHCONF}"
timedatectl set-timezone Asia/Shanghai