linuxShortcuts/Services/sshrc

4 lines
174 B
Plaintext
Raw Normal View History

2022-10-07 11:40:50 +00:00
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