Skip to content

MrJacob12/ssh-alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Languages