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

https://github.com/mrjacob12/ssh-alert

SSH Alert
https://github.com/mrjacob12/ssh-alert

rust ssh-alert

Last synced: 4 months ago
JSON representation

SSH Alert

Awesome Lists containing this project

README

          

ssh-alert

[![GitHub Issues](https://img.shields.io/github/issues/MrJacob12/ssh-alert.svg)](https://github.com/MrJacob12/ssh-alert/issues)
[![License](https://img.shields.io/github/license/MrJacob12/ssh-alert.svg)](/LICENSE)

- [🧐 About ](#-about-)
- [🏁 Getting Started ](#-getting-started-)
- [Installing](#installing)
- [⛏️ Built Using ](#️-built-using-)
- [📝 License](#-license)
- [✍️ Authors ](#️-authors-)

## 🧐 About

ssh alert is a simple tool to alert you when someone is trying to login to your server via ssh.

## 🏁 Getting Started

### Installing

```bash
git clone https://github.com/MrJacob12/ssh-alert
```

```bash
cargo build --release
```

Run app as root

```bash
sudo ./main
```

The first run will create a configuration file to `/etc/ssl-alert/config.yml` Complete this configuration:

```yaml
smtp_server: smtp.gmail.com
username: Username to google.smtp
password: Password to google.smtp
from: Email from
to: Email to send alert
path: Path to ssh-alert executable file
```

Second run as root create pam script to handle success login. If you want to change path to executable file after second run, you need to change path in `/etc/pam.scripts/ssh_alert.sh`

## ⛏️ Built Using

- [Rust](https://www.rust-lang.org/)

## 📝 License

This project is [MIT](https://github.com/MrJacob12/ssh-alert/blob/master/LICENSE) licensed.

## ✍️ Authors

- [@MrJacob12](https://github.com/mrjacob12)