Update Linux/SSH/README.md

This commit is contained in:
2025-01-06 09:09:32 +00:00
parent f100de5ea1
commit 89c2ef3599

View File

@@ -175,9 +175,6 @@ ClientAliveCountMax 2
AllowUsers $VALID_USERS
EOL
warn "Prüfe SSH-Konfiguration..."
sudo sshd -t && sudo systemctl restart sshd && log "SSH-Dienst erfolgreich neu gestartet."
log "Prüfe SSH-Konfiguration..."
if sudo sshd -t && sudo systemctl restart sshd; then
log "SSH-Dienst erfolgreich neu gestartet."