Files
shell/ssh-login.sh
2023-08-31 19:52:47 -04:00

9 lines
200 B
Bash
Executable File

#!/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