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

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

Awesome Lists containing this project

README

          

[![Go Report Card](https://goreportcard.com/badge/gitlab.com/soerenschneider/ssh-login-notification)](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

![](doc/screenshot.png)