https://github.com/jipok/login-notify
Sends Telegram notifications on SSH logins
https://github.com/jipok/login-notify
bash linux login notifications pam telegram telegram-bot
Last synced: about 1 year ago
JSON representation
Sends Telegram notifications on SSH logins
- Host: GitHub
- URL: https://github.com/jipok/login-notify
- Owner: Jipok
- Created: 2020-11-13T14:37:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-27T16:07:34.000Z (over 1 year ago)
- Last Synced: 2025-03-24T04:21:58.969Z (over 1 year ago)
- Topics: bash, linux, login, notifications, pam, telegram, telegram-bot
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# login-notify

PAM module for Telegram login alerts
# Installation
1) `wget https://raw.githubusercontent.com/Jipok/login-notify/refs/heads/master/login-notify.sh`
2) `chmod +x login-notify.sh`
3) Using [@BotFather](https://telegram.me/botfather) create a bot
4) In `login-notify.sh` change `apiToken` to value obtained from @BotFather
5) In `login-notify.sh` change `chatId` to valid chat id. Example: get your id from [@myidbot](https://telegram.me/myidbot)
6) `./login-notify.sh install`
# Tips
* 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).