Work on all popular linux system (Debian <3, Ubuntu, Arch Linux etc..)
Clone to /opt/ folder cd /opt/ && git clone https://github.com/stylersnico/ssh-login-alert-telegram
cd /opt/ && git clone https://github.com/stylersnico/ssh-login-alert-telegram
Edit two configuration variables by editing alert.sh: nano alert.sh
nano alert.sh
Add this script when user connect with the deploy script: sh deploy.sh
sh deploy.sh
Confirm that the script is working by logging to ssh again.
If you have many servers go check: https://github.com/stylersnico/Deploy-Telegram-SSH-Alerting-with-Ansible
Forked from : https://github.com/MyTheValentinus/ssh-login-alert-telegram