ssh alert is a simple tool to alert you when someone is trying to login to your server via ssh.
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
This project is MIT licensed.