diff --git a/Linux/SSH/secure_ssh.sh b/Linux/SSH/secure_ssh.sh index 4e4ea2a..2f20007 100644 --- a/Linux/SSH/secure_ssh.sh +++ b/Linux/SSH/secure_ssh.sh @@ -272,14 +272,11 @@ else fi # Konfiguriere SSH für die Include-Direktive -# Prüfe zunächst, ob die Include-Direktive bereits in der Hauptkonfigurationsdatei vorhanden ist -if ! sudo grep -q "^Include $SSH_CONFIG_DIR" "$SSH_MAIN_CONFIG" 2>/dev/null; then - warn "Include-Direktive wird zur Hauptkonfigurationsdatei hinzugefügt..." - echo "Include $SSH_CONFIG_DIR/*" | sudo tee -a "$SSH_MAIN_CONFIG" > /dev/null - log "Include-Direktive hinzugefügt." -else - log "Include-Direktive ist bereits in der Hauptkonfigurationsdatei vorhanden." -fi +warn "Setze /etc/ssh/sshd_config zurück auf Include‑Direktive..." +sudo tee "$SSH_MAIN_CONFIG" > /dev/null <