https://github.com/soerenschneider/ssh-login-notification
Sends a notification when a login via SSH occurs
https://github.com/soerenschneider/ssh-login-notification
login-notification ssh telegram telegram-bot
Last synced: 9 months ago
JSON representation
Sends a notification when a login via SSH occurs
- Host: GitHub
- URL: https://github.com/soerenschneider/ssh-login-notification
- Owner: soerenschneider
- License: apache-2.0
- Archived: true
- Created: 2020-01-24T18:06:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-12T20:26:35.000Z (almost 3 years ago)
- Last Synced: 2025-07-31T22:51:09.161Z (11 months ago)
- Topics: login-notification, ssh, telegram, telegram-bot
- Language: Go
- Homepage:
- Size: 1.13 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://goreportcard.com/report/gitlab.com/soerenschneider/ssh-login-notification)
sends a notification (preferably) via telegram when a successful SSH login event occurred.
## configuration
Create a config file in either /etc/default/sshnotification.json or $HOME/.sshnotification/sshnotification.json:
```
{
"telegram_token": "your-super-secret-bot-token",
"telegram_id": 123456789
}
```
Add the following line as the last line in /etc/pam.d/sshd:
```
session optional pam_exec.so /path/to/sshloginnotification
```
## screenshot
