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
- Host: GitHub
- URL: https://github.com/mrjacob12/ssh-alert
- Owner: MrJacob12
- License: mit
- Created: 2023-01-15T19:57:59.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-05T17:00:46.000Z (almost 2 years ago)
- Last Synced: 2025-10-13T05:58:47.515Z (9 months ago)
- Topics: rust, ssh-alert
- Language: Rust
- Homepage:
- Size: 92.8 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
ssh-alert
[](https://github.com/MrJacob12/ssh-alert/issues)
[](/LICENSE)
- [🧐 About ](#-about-)
- [🏁 Getting Started ](#-getting-started-)
- [Installing](#installing)
- [⛏️ Built Using ](#️-built-using-)
- [📝 License](#-license)
- [✍️ Authors ](#️-authors-)
ssh alert is a simple tool to alert you when someone is trying to login to your server via ssh.

### 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`
- [Rust](https://www.rust-lang.org/)
## 📝 License
This project is [MIT](https://github.com/MrJacob12/ssh-alert/blob/master/LICENSE) licensed.
- [@MrJacob12](https://github.com/mrjacob12)