Simple Bash script which send notification when someone grant shell access for specific user.
If your user use "bash" shell by default then add below line at bottom of the .bashrc
/home/your_script_path/message_logon_telegram.sh
Shell access from:
username pts/0 2018-06-15 19:41 (IP_Address)
Fri Jun 15 19:41:26 CEST 2018