Notification via telegram bot when user login ssh on Linux

  • Install scp Command

yum install openssh-clients

  • Install git Command

yum install git

  • Add value chat_id and token to variable in the script ssh-login-telegram-notification.s


  • Setup on CentOS cmd:

git clone
cd ssh-login-telegram-notification
cp -r /etc/profile.d/

  • Setup on CentOS via scipt

git clone
cd ssh-login-telegram-notification && ./

  • /usr/bin/curl: Cron error : Permission denied ? Check the permission of /usr/bin/curl it should be 755 if its correct then check the script files permission

chmod 755 /usr/bin/curl

  • Reference:

Leave a Reply

Your email address will not be published. Required fields are marked *