更新 'initial.sh'
parent
fcdff92345
commit
cea8866fbe
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue