https://github.com/thomasheller/ssh-login-notify
Send a notification on SSH login
https://github.com/thomasheller/ssh-login-notify
Last synced: about 1 year ago
JSON representation
Send a notification on SSH login
- Host: GitHub
- URL: https://github.com/thomasheller/ssh-login-notify
- Owner: thomasheller
- License: apache-2.0
- Created: 2020-03-08T14:12:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-12T14:28:48.000Z (almost 6 years ago)
- Last Synced: 2025-02-13T14:40:20.536Z (over 1 year ago)
- Language: Shell
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ssh-login-notify
## Setup
Put `ssh-login.sh` in `/usr/local/sbin/` and make sure it's executable.
Add the following line to `/etc/pam.d/sshd`.
```
session optional pam_exec.so /usr/local/sbin/ssh-login.sh
```
Install an executable notification script at `/usr/local/sbin/notify.py`, for example [telegram-notify](https://github.com/thomasheller/telegram-notify).