Update Linux/SSH/secure_ssh.sh

This commit is contained in:
2025-05-17 08:59:00 +00:00
parent 7b8b99b4d0
commit 0366a6f935

View File

@@ -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"