How to Install and Configure Fail2Ban on Ubuntu Server
Fail2Ban watches your logs and bans IPs that hammer SSH or Nginx with failed logins. This guide walks through installation, jail setup, and safe testing on Ubuntu Server.
Fail2Ban watches your logs and bans IPs that hammer SSH or Nginx with failed logins. This guide walks through installation, jail setup, and safe testing on Ubuntu Server.
To disable root SSH login safely, set up a working sudo account with key login first, then change one line in sshd_config and test it in a second terminal window before you log out. Root is the first account every automated scanner tries, so closing that door cuts a large share of brute-force noise. The … Baca Selengkapnya
Unattended upgrades vs manual patching is the choice every VPS owner faces sooner or later. Patch too slowly and a known vulnerability stays open on a server reachable from the whole internet. Patch carelessly and a routine update takes down the site you were trying to protect. Both have bitten people running a single live … Baca Selengkapnya
If your auth log is full of failed SSH logins from countries you never do business in, cut most of that noise at the firewall. Learning how to block SSH login attempts by country with GeoIP means building a list of IP ranges per country, then dropping port 22 traffic from the countries you block … Baca Selengkapnya
How to Set Up Two-Factor Authentication for SSH on Your VPS A password alone is a weak lock on your server. Bots probe SSH on every VPS, trying common passwords around the clock, and one guessed password hands them a shell. Setting up two-factor authentication for ssh adds a second check: even with the right … Baca Selengkapnya
How to Harden Ubuntu Server After a Fresh Install: The First 15 Minutes A fresh Ubuntu install is not safe by default. SSH is open, the root account may still accept a password, and no firewall is running. That is the normal state of a new server, and it is also the state most attacks … Baca Selengkapnya
When a VPS feels slow, guessing wastes time. The fix starts with seeing what the server is doing right now. Learning to monitor VPS CPU RAM disk usage with htop and Glances gives you that view in five minutes. Both tools run in the terminal, both show live numbers, and both help you tell a … Baca Selengkapnya
When a site on your server breaks, the nginx access and error logs are usually the first place that tells you what happened. They record every request the server handled and every problem it hit while doing so. If you know where these files live and how to read a line, you can find a … Baca Selengkapnya