fix typo in ssh restart cmd

This commit is contained in:
itiligent 2024-11-13 06:04:49 +11:00 committed by GitHub
parent 6371c33552
commit 16ca246428
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -272,7 +272,7 @@ mkdir -p /etc/guacamole/extensions/
adduser "${GUACD_ACCOUNT}" --disabled-password --disabled-login --gecos "" > /dev/null 2>&1
gpasswd -d "${GUACD_ACCOUNT}" users > /dev/null 2>&1
echo -e "\nMatch User ${GUACD_ACCOUNT}\n X11Forwarding no\n AllowTcpForwarding no\n PermitTTY no\n ForceCommand cvs server" | sudo tee -a /etc/ssh/sshd_config > /dev/null 2>&1
systemctl restart sshd
systemctl restart ssh
touch "${CRON_DENY_FILE}"
chmod 644 "${CRON_DENY_FILE}"
chown root:root "${CRON_DENY_FILE}"