1
0
Fork 0
mirror of https://github.com/tteck/Proxmox.git synced 2025-02-15 06:09:15 +01:00

root ssh access

This commit is contained in:
tteckster 2022-11-23 11:37:46 -05:00 committed by GitHub
parent 9f192aeec2
commit ce55f1cf86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
55 changed files with 330 additions and 0 deletions

View file

@ -113,6 +113,12 @@ EOF
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
msg_ok "Customized Container"
fi
if [[ "${SSH_ROOT}" == "yes" ]]; then
cat <<EOF >>/etc/ssh/sshd_config
PermitRootLogin yes
EOF
systemctl restart sshd
fi
msg_info "Cleaning up"
apt-get autoremove >/dev/null