mirror of
https://github.com/acedanger/shell.git
synced 2025-12-06 04:30:13 -08:00
alert when there is a login via ssh
This commit is contained in:
8
ssh-login.sh
Executable file
8
ssh-login.sh
Executable 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
|
||||||
Reference in New Issue
Block a user