From 14c80bd15fd6c1a04d67f5974380994c56b6f3c5 Mon Sep 17 00:00:00 2001 From: admManuel Date: Tue, 6 May 2025 12:05:36 +0000 Subject: [PATCH] Update Linux/SSH/secure_ssh.sh --- Linux/SSH/secure_ssh.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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 <