„sshlogin.sh“ ändern
This commit is contained in:
parent
b0be6ddd7d
commit
db4962e900
@ -1,6 +1,5 @@
|
|||||||
#!/bin/bash
|
|
||||||
if [ "$PAM_TYPE" != "close_session" ]; then
|
if [ "$PAM_TYPE" != "close_session" ]; then
|
||||||
host="`hostname`"
|
host="`hostname`"
|
||||||
message="`env`"
|
message="`env`"
|
||||||
sh /opt/push/pushover.sh -u [userkey] -a [apikey/token] "SSH Login: $PAM_USER from $PAM_RHOST on $host"
|
sh /opt/push/pushover.sh -u ${userkey} -a ${apikey} "SSH Login: $PAM_USER from $PAM_RHOST on $host"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user