From 4fc7c00a0d7f31c19b3d1a34415e330143ad80ae Mon Sep 17 00:00:00 2001 From: Peter Wood Date: Wed, 5 Mar 2025 09:39:15 -0500 Subject: [PATCH] fix: update ssh-login.sh to exclude specific remote host from session initiation --- ssh-login.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh-login.sh b/ssh-login.sh index b85b304..7d15182 100755 --- a/ssh-login.sh +++ b/ssh-login.sh @@ -6,7 +6,7 @@ # `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 \ -H prio:urgent \ -H tags:warning,ssh,login,${HOSTNAME} \