diff --git a/ssh-login.sh b/ssh-login.sh new file mode 100755 index 0000000..4d067ea --- /dev/null +++ b/ssh-login.sh @@ -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