From 0366a6f935a978928895fdfe1090df2d9a5d79d8 Mon Sep 17 00:00:00 2001 From: admManuel Date: Sat, 17 May 2025 08:59:00 +0000 Subject: [PATCH] Update Linux/SSH/secure_ssh.sh --- Linux/SSH/secure_ssh.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Linux/SSH/secure_ssh.sh b/Linux/SSH/secure_ssh.sh index ad4a54f..1857837 100644 --- a/Linux/SSH/secure_ssh.sh +++ b/Linux/SSH/secure_ssh.sh @@ -92,7 +92,12 @@ command -v sshd &>/dev/null || install_package openssh-server PAM_SUPPORT=$(check_pam_support) if [ "$PAM_SUPPORT" = "yes" ]; then log "PAM support detected and will be enabled." - PAM_OPTIONS="UsePAM yes\nPrintLastLog yes" + PAM_OPTIONS=$( + cat <<-END +UsePAM yes +PrintLastLog yes +END + ) else warn "PAM not available - skipping PAM-related options." PAM_OPTIONS="# PAM not available on this system"