Work on all popular linux system (Debian, Ubuntu, Arch Linux etc..)
- curl
- git (much easy to install)
-
Clone or download to /opt/ folder
cd /opt/ && git clone https://github.com/MyTheValentinus/ssh-login-alert-telegram
-
Edit two configuration variables by editing credentials.config:
vim credentials.config
-
Add this script when user connect with the deploy script:
bash deploy.sh
-
Confirm that the script is working by logging you to ssh again.
If you have many servers go check: https://github.com/MyTheValentinus/Deploy-Telegram-SSH-Alerting-with-Ansible (fork of initial @stylernico work)