„sshlogin.sh“ hinzufügen
This commit is contained in:
parent
5b22fdd998
commit
f4750e89df
6
sshlogin.sh
Normal file
6
sshlogin.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user