How to Disable Root SSH Login and Still Recover a Locked-Out VPS

disable root ssh login

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: What Breaks Less on a Live VPS?

unattended upgrades vs manual patching

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

How to Block SSH Login Attempts from Specific Countries with GeoIP

block ssh login attempts by country

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

two-factor authentication for ssh

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

harden ubuntu server

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

How to Monitor Disk, RAM, and CPU Usage on a VPS with htop and Glances

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

Nginx Access and Error Logs: Where to Find Them and How to Read Them

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