Supercharge Your Server Security with Real-Time SSH Monitoring!
MOJAHID UL HAQUE
DevOps Engineer
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 postRelated Posts
Automating Server Setup with a Bash Script
Automating Server Setup with a Bash Script Hey everyone! I wanted to share a bash script I wrote to streamline the initial setup of a new server. Setting up servers can be repetitive, so I created this script to automate common tasks. Here's what it does: 1. Updates package lists to ensure all installations are up-to-date. 2. Installs curl if it's not already installed. 3. Adds 1GB of swap memory to improve system performance. 4. Installs Node.js (v18.x), checking if it's already present to avoid redundancy. 5. Installs Apache2, ensuring it's properly set up and running. 6. Installs PM2 globally for efficient Node.js application management.
Check IP Location, Fraud Risk & Security Health - ip.crafzo.com
It's an IP Geolocation & Health Analyzer that lets you: - Pinpoint any IP's city, region, and country - Run Fraud Risk Analysis with detailed scoring - Check overall IP security health & reputation - Get AI-powered insights with clear recommendations Why it's useful: - Security teams can quickly flag risky IPs - Developers can test and monitor connections - Everyday users can learn where their IP traces back Example: Enter an IP → you instantly see its location, fraud risk, and an AI-generated health summary with recommendations. As a DevOps Engineer, I wanted to push AI beyond "helper" status and see if it could ship a full product. The result is this live tool. The best part? This website was created 100% with AI — just by giving prompts. No manual coding, no boilerplate. Idea → live. And yes, I didn't rely on any external APIs for IP-to-location detection; it runs using MaxMind DB inside the AI-built workflow.
Most DevOps problems aren't tech problems - They're organizational chaos wearing a YAML hoodie
Most "DevOps problems" aren't tech problems. They're just organizational chaos wearing a YAML hoodie. We love to buy tools to fix culture. It never works. If you want to actually ship faster, try this Rule of Three: 1. Repeat it 3 times? Automate it. 2. Need a 12-step README to run it? You didn't automate it, you just outsourced the confusion. 3. Takes more time to maintain than it saves? Delete it. You've built a monument, not a tool. The Boring DevOps Checklist: Pipelines: Should be idempotent and predictable. If it's "flaky," it's broken. Infra: Treat it like code. If it's not versioned and reviewed, it's a liability. Alerts: If it doesn't require immediate human action? Don't send a page. The Goal: One command to deploy. One dashboard to verify. Stop looking for more tools. Start looking for less surprise.