Update Linux/SSH/secure_ssh.sh
This commit is contained in:
@@ -92,7 +92,12 @@ command -v sshd &>/dev/null || install_package openssh-server
|
|||||||
PAM_SUPPORT=$(check_pam_support)
|
PAM_SUPPORT=$(check_pam_support)
|
||||||
if [ "$PAM_SUPPORT" = "yes" ]; then
|
if [ "$PAM_SUPPORT" = "yes" ]; then
|
||||||
log "PAM support detected and will be enabled."
|
log "PAM support detected and will be enabled."
|
||||||
PAM_OPTIONS="UsePAM yes\nPrintLastLog yes"
|
PAM_OPTIONS=$(
|
||||||
|
cat <<-END
|
||||||
|
UsePAM yes
|
||||||
|
PrintLastLog yes
|
||||||
|
END
|
||||||
|
)
|
||||||
else
|
else
|
||||||
warn "PAM not available - skipping PAM-related options."
|
warn "PAM not available - skipping PAM-related options."
|
||||||
PAM_OPTIONS="# PAM not available on this system"
|
PAM_OPTIONS="# PAM not available on this system"
|
||||||
|
|||||||
Reference in New Issue
Block a user