alert when there is a login via ssh

This commit is contained in:
Peter Wood
2023-08-31 19:52:47 -04:00
parent 304b1bd377
commit 23c8b588a9

8
ssh-login.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
if [ "${PAM_TYPE}" = "open_session" ]; then
curl \
-H prio:high \
-H tags:warning \
-d "SSH login: ${PAM_USER} from ${PAM_RHOST}" \
https://notify.peterwood.rocks/lab
fi