From c0e2cd351e7d1a1eb259db07d86db703463e3878 Mon Sep 17 00:00:00 2001 From: Peter Wood Date: Fri, 1 Sep 2023 07:07:36 -0400 Subject: [PATCH] added info on where to reference the ssh login notification --- ssh-login.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ssh-login.sh b/ssh-login.sh index 4d067ea..4ec8ff9 100755 --- a/ssh-login.sh +++ b/ssh-login.sh @@ -1,4 +1,11 @@ #!/bin/bash + +# +# This script is referenced in `/etc/pam.d/sshd` +# - at the end of the `sshd` file, add +# `session optional pam_exec.so /home/acedanger/shell/ssh-login.sh` +# + if [ "${PAM_TYPE}" = "open_session" ]; then curl \ -H prio:high \