„sshlogin.sh“ hinzufügen

This commit is contained in:
Yann Mölle 2023-04-12 07:06:17 +00:00
parent 5b22fdd998
commit f4750e89df

6
sshlogin.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
if [ "$PAM_TYPE" != "close_session" ]; then
host="`hostname`"
message="`env`"
sh /root/push/pushover.sh -u [userkey] -a [apikey/token] "SSH Login: $PAM_USER from $PAM_RHOST on $host"
fi