linuxShortcuts/Services/sshrc
2022-10-07 08:40:50 -03:00

4 lines
174 B
Plaintext

ip=`echo $SSH_CONNECTION | cut -d " " -f 1`
logger -t ssh-wrapper $USER login from $ip
/usr/bin/curl -d "Contabo: user $USER just logged in from $ip." ntfy.sh/bft >/dev/null