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"