mirror of
https://github.com/acedanger/shell.git
synced 2025-12-06 01:10:12 -08:00
fix: update ssh-login.sh to exclude specific remote host from session initiation
This commit is contained in:
@@ -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} \
|
||||||
|
|||||||
Reference in New Issue
Block a user