SecurityLinkedIn PostDecember 10, 20241 min read114 words

Supercharge Your Server Security with Real-Time SSH Monitoring!

M

Mojahid Ul Haque

DevOps Engineer

7 likes0 comments206 views

Supercharge Your Server Security with Real-Time SSH Monitoring!

Server security is crucial in today's world. I've developed a Bash script to automate SSH login monitoring, keeping your systems secure 24/7.

What Does It Do? 1. Real-Time Alerts: The script continuously monitors SSH logins and logouts from /var/log/auth.log, and sends instant alerts to a Google Chat space. 2. Geo-Location Enrichment: Captures login details (IP, country, city) to identify suspicious logins. 3. Connection Tracking: Track the number of active SSH connections, and monitor the session count per IP. 4. Session Duration & Insights: For every logout, the script calculates how long a session lasted. 5. Google Chat Integration: All critical login/logoff events trigger Google Chat notifications.

Originally posted on LinkedIn

View original post