Work on all popular linux system (Debian, Ubuntu, Arch Linux etc..)
HIGHLY inspired by https://github.com/MyTheValentinus/ssh-login-alert-telegram
- curl
- git (much easy to install)
-
Clone or download to /opt/ folder, with root permissionned user
cd /opt/ && git clone https://github.com/Blue-Secure/ssh-login-teams-alert-webhook
-
Edit configuration variable by editing credentials.config, its just the Webhook URL given by MS Teams:
cd /opt/ssh-login-teams-alert-webhook && 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.