Skip to content

Latest commit

 

History

History
70 lines (48 loc) · 1.78 KB

readme.md

File metadata and controls

70 lines (48 loc) · 1.78 KB

ssh-alert

GitHub Issues License

🧐 About

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

🏁 Getting Started

Installing

git clone https://github.com/MrJacob12/ssh-alert
cargo build --release

Run app as root

sudo ./main

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

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

📝 License

This project is MIT licensed.

✍️ Authors