Gluttony-Cluster/ansible/artifacts/ntfy-ssh-login.sh
2024-11-02 19:11:50 -04:00

10 lines
225 B
Bash
Executable File

#!/bin/bash
if [ "${PAM_TYPE}" = "open_session" ]; then
curl \
-H prio:high \
-H tags:warning \
-u ssh:AXxccvd9um \
-d "SSH Login ($(cat /etc/hostname)): ${PAM_USER} from ${PAM_RHOST}" \
https://ntfy.clortox.com/ssh
fi