PAM module for Telegram login alerts
wget https://raw.githubusercontent.com/Jipok/login-notify/refs/heads/master/login-notify.sh
chmod +x login-notify.sh
- Using @BotFather create a bot
- In
login-notify.sh
changeapiToken
to value obtained from @BotFather - In
login-notify.sh
changechatId
to valid chat id. Example: get your id from @myidbot ./login-notify.sh install
- Uninstall with
login-notify.sh uninstall
- By default, it does not notify about closing a session. See 37th line.
- By default, it does not notify about connections from the local network. See 36th line.
- Should work on any normal Linux distribution(Arch, Debian, Void, Fedora, etc).