mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-07-16 10:57:38 +00:00
code refactoring (#845)
This commit is contained in:
@ -140,10 +140,8 @@ EOF
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
|
Reference in New Issue
Block a user