An open API service indexing awesome lists of open source software.

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

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).