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-alertcargo build --releaseRun app as root
sudo ./mainThe 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 fileSecond 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.