How to Rotate SSH Keys for Your Whole Team Without Locking Anyone Out

rotate ssh keys

Sooner or later you need to rotate ssh keys for everyone who logs into your servers. Maybe someone left the team, maybe a laptop was stolen, or maybe the keys are simply years old and nobody remembers who has a copy. Whatever the reason, the fear is always the same: one wrong edit to authorized_keys … Baca Selengkapnya

How to Secure Your VPS Against Credential Stuffing Attacks

secure your vps against credential stuffing

Credential stuffing is the quiet version of a break-in. Instead of guessing one password at a time, an attacker takes username and password pairs leaked from another site’s breach and tries them against your server, thousands at a time. When you secure your VPS against credential stuffing, you are not fighting a genius hacker. You … Baca Selengkapnya

CrowdSec vs Fail2ban: Which Brute-Force Protection Fits a Small VPS?

crowdsec vs fail2ban

Every VPS with SSH open to the internet gets probed. Within hours of putting a fresh server online, the auth log fills with login attempts from bots trying common usernames and weak passwords. The question is not whether to block them, but which tool to use. This crowdsec vs fail2ban comparison looks at both from … Baca Selengkapnya

SSH Certificates vs SSH Keys: Which Login Method Is Safer for Teams

ssh certificates vs ssh keys

One person logging into a VPS with an SSH key is simple. Five people, three servers, and someone leaving the team is a different problem. That is the point where the usual setup starts to crack, and it is where the debate over ssh certificates vs ssh keys actually matters. Both methods get you into … Baca Selengkapnya

How to Audit SSH Logins on Your VPS with Lastlog and Journalctl

audit ssh logins

Every SSH login leaves a trace. The question is whether anyone ever looks at it. When you audit SSH logins on your VPS, you find out who connected, when, from where, and whether anyone tried and failed. Most VPS owners never check until something breaks or a bill spikes. By then the evidence is gone … Baca Selengkapnya

How to Audit Who Logged Into Your VPS and Spot Suspicious Logins

audit who logged into your vps

Every login to your VPS leaves a trace. The problem is that most owners never look at those traces until something breaks. If you audit who logged into your VPS on a regular schedule, you catch a stranger’s session while it is still one login instead of a full breach. This guide covers the commands … Baca Selengkapnya

How to Set Up UFW Firewall Rules That Do Not Lock You Out of Your VPS

ufw firewall rules vps

Setting up ufw firewall rules vps owners can trust starts with one habit: allow SSH before you switch the firewall on. UFW, short for Uncomplicated Firewall, is the front end for iptables that ships with Ubuntu. It does exactly what you tell it to do, and that includes blocking your own SSH session if you … Baca Selengkapnya

How to Use rsync to Sync Files Between Your VPS and Home Computer

sync files between vps and computer

How to Use rsync to Sync Files Between Your VPS and Home Computer If you run a VPS and a home computer, you end up moving files between them all the time. Site backups, photos, project folders, config files. The usual way, dragging files through an SFTP client or zipping and downloading them, works once. … 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