fix: update ssh-login.sh to exclude specific remote host from session initiation

This commit is contained in:
Peter Wood
2025-03-05 09:39:15 -05:00
parent afe3f98e26
commit 4fc7c00a0d

View File

@@ -6,7 +6,7 @@
# `session optional pam_exec.so /home/acedanger/shell/ssh-login.sh` # `session optional pam_exec.so /home/acedanger/shell/ssh-login.sh`
# #
if [ "${PAM_TYPE}" = "open_session" ]; then if [ "${PAM_TYPE}" = "open_session" && "${PAM_RHOST}" -ne "10.0.1.4" ]; then
curl \ curl \
-H prio:urgent \ -H prio:urgent \
-H tags:warning,ssh,login,${HOSTNAME} \ -H tags:warning,ssh,login,${HOSTNAME} \