The VPS playbook copied from terminals, not blogs
Eighteen guides on running a Linux server properly — sizing, hardening, tuning, backing up and recovering. Every command was executed on a live KVM instance before publication, and every guide names the distribution and plan size it was written against.
- No affiliate links, no sponsored steps
- Re-tested on every image change
- Works on any KVM VPS
The 20-Minute Server Hardening Runbook
Nine out of ten compromised servers were not defeated by a clever exploit — they were found by a script scanning for password authentication left switched on. This ordered sequence closes every one of those doors before your first visitor arrives.
- Import your key, then disable password and root login in one pass — with a second session held open as insurance.
- Apply unattended security upgrades and confirm the timer is genuinely firing, not merely installed.
- Default-deny inbound, open only the ports your service actually listens on, rate-limit SSH.
- Enable Fail2ban with a conservative threshold, then verify a deliberate wrong password produces a ban and an unban.
- Take a known-good snapshot the moment the box is clean, so recovery is one click instead of a rebuild.
# keep a second shell open before this runs
$ ssh-copy-id -i ~/.ssh/tavoro_ed25519.pub root@203.0.113.24
$ sed -i \
-e 's/^#\?PasswordAuthentication.*/PasswordAuthentication no/' \
-e 's/^#\?PermitRootLogin.*/PermitRootLogin prohibit-password/' \
/etc/ssh/sshd_config.d/99-hardening.conf
$ sshd -t && systemctl restart ssh
$ ufw default deny incoming
$ ufw limit 22/tcp
$ ufw allow 80,443/tcp
$ ufw --force enable
$ apt install -y unattended-upgrades fail2ban
$ systemctl enable --now fail2ban
$ fail2ban-client status sshd | grep Banned
First 10 Minutes on a Fresh VPS
The order of operations that matters: create a sudo user before you touch anything else, close the root door, set the clock, then add swap. Skipping a step here is what costs a weekend later.
SSH Keys, Not Passwords: Port 22 Done Properly
Generate an Ed25519 key, install it with the right ownership and permissions, verify you can still log in, and only then disable password authentication. The verification step is the one people skip.
Ubuntu 24.04 Initial Setup, Line by Line
Every command explained rather than dumped, including what snap changes, why cloud-init rewrites your SSH keys on some images, and how to confirm unattended security upgrades are genuinely running.
A Firewall That Actually Holds: UFW, nftables and Fail2ban
Default-deny inbound, rate-limit SSH, and understand which layer each tool sits at. Includes the IPv6 gotcha that leaves a second firewall wide open on freshly provisioned machines.
TLS Automation with Let's Encrypt, Without Downtime
HTTP-01 versus DNS-01, why the reload hook matters more than the issue command, and how to prove the renewal timer works instead of discovering at 3 a.m. that it never fired.
You Think You Were Compromised: A Triage Runbook
What to capture before you reboot, how to find persistence in cron, systemd units and authorized_keys, and the honest moment when rebuilding from a known-good snapshot beats cleaning.
Reading iostat and vmstat: Finding the Real Bottleneck
Why %util lies on NVMe, what await actually measures, and how to tell disk saturation apart from CPU steal on a shared host — three commands, one decision tree.
PHP-FPM, OPcache and MariaDB Tuning for WooCommerce
Sizing pm.max_children from real memory use instead of a blog post, the OPcache settings that actually move the needle, and InnoDB buffer pool maths for a 4 GB instance.
What IOPS Actually Mean: NVMe, SATA and Network Storage
Queue depth, block size and why a 4K random read number without both is marketing. Then a fio test you can run yourself in ninety seconds to check what you were sold.
Docker Compose on a VPS: A Production-Ready Layout
Restart policies, resource limits, log rotation before the disk fills, healthchecks that gate your deployments, and the bind-mount permissions trap that only appears on the server.
Nginx Reverse Proxy for Multiple Node.js Services
One IP, several apps, correct forwarded headers, WebSocket upgrades that survive a reload, and systemd units that restart cleanly instead of leaving orphaned ports.
Realistic Self-Hosted Email on a VPS
The honest version: outbound port 25 policy, subnet reputation you inherit, the warm-up timeline, and the two configurations where running your own mail is genuinely the right call.
Reverse DNS, PTR Records and Deliverability
What a PTR record proves, why a missing one pushes mail to spam, and the exact request to send your provider so it is approved the first time rather than after a follow-up.
Dual-Stack IPv6 on a Single VPS in 15 Minutes
Confirm the /64 is actually routed, set the address correctly without breaking your default route, open it in the firewall, and test from outside your own network — not from the box itself.
Transit, Peering and BGP: A Plain-Language Primer
Why the same data center can be 4 ms from one network and 60 ms from yours, what an IXP actually changes, and how to read a looking glass before you pick a region.
Snapshots Are Not Backups: A Strategy That Survives
A snapshot on the same storage fails with the storage. The 3-2-1 rule applied to a single small server, what to keep off-site, and how to schedule a restore test you will not postpone forever.
Prometheus and Grafana on a Small VPS
Getting useful alerting inside a 1 GB memory budget: which exporters earn their keep, scrape intervals that do not lie, and the four alerts worth waking you up for.
Zero-Downtime Deploys with systemd and Nginx
Release directories, an atomic symlink swap, socket activation that keeps the port listening, and a rollback path that takes one command instead of one apology.
No guide covers that yet
Tell us the exact task you are stuck on. If the answer is broadly useful, it becomes a published guide — and you get it before anyone else does.
Request a GuideRead them in the right order
Three tracks that build on each other. Each step assumes the one before it is already done, so you never end up tuning a server you have not yet secured.
Fresh to Secure
A new server to a machine you can leave alone overnight.
- First 10 Minutes on a Fresh VPS9 min · Beginner
- SSH Keys, Not Passwords8 min · Beginner
- A Firewall That Actually Holds11 min · Intermediate
- TLS Without Downtime10 min · Intermediate
Fast Under Load
Find the real ceiling before you pay for a bigger plan.
- What IOPS Actually Mean7 min · Beginner
- Reading iostat and vmstat13 min · Intermediate
- WooCommerce Performance Tuning18 min · Advanced
- Prometheus on a Small VPS13 min · Intermediate
Ship Without Fear
Change production on a Friday and stay relaxed.
- Snapshots Are Not Backups8 min · Beginner
- A Production Compose Layout14 min · Intermediate
- Zero-Downtime Deploys10 min · Advanced
- Compromise Triage Runbook16 min · Advanced
What hosting terms actually mean
Three columns that matter: what the plan card says, what it turns out to mean, and what to verify with your own eyes.
uname -r. A containerised plan reports the host kernel instead of its own.%st in top during a sustained compile or benchmark.Three blocks we run on every server
Short, reviewed and safe to read before you paste. Replace every value in angle brackets with your own, and take a snapshot first.
Lock Down SSH
adduser deploy && usermod -aG sudo deploy
rsync -a --chown=deploy:deploy ~/.ssh /home/deploy
ufw allow OpenSSH && ufw enable
sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication no/' \
/etc/ssh/sshd_config
systemctl restart ssh
# keep the first session open while you test a second one
The last line is the whole point: never close your working terminal until a fresh login succeeds.
Diagnose a Slow Server
uptime
vmstat 1 10
iostat -xz 2
free -h
df -hT && df -i
ps aux --sort=-%cpu | head -8
journalctl -p err --since "30 min ago" --no-pager
# high %wa is storage, %st is the host, idle CPU with high load is lock contention
Measure before you change anything. Most "the VPS is slow" tickets are one runaway process or a full inode table.
Nightly Off-Site Backup
restic init -r sftp://backup@offsite:/srv/restic
export RESTIC_PASSWORD_FILE=~/.restic_pass
restic backup /var/www /etc /home
restic forget --keep-daily 7 --keep-weekly 5 --prune
restic check --read-data-subset=5%
crontab -e
02 3 * * * /usr/local/bin/nightly-backup.sh
The verify step is what separates a backup from a hope. Off-site storage is billed by its own provider, not included in a VPS plan.
How the guides are maintained
Are these guides tested on real servers?
Yes. Every command was run on a live KVM instance before publication, on the Ubuntu or Debian version named at the top of the guide. When a distribution update changes the behaviour of a step, the guide is re-tested and the review date is bumped.
Do I need a TavoroHost server to follow them?
No. The library is written for any KVM-based Linux VPS and is not tied to our control panel. Where a step depends on provider-side features — reverse DNS, snapshots, network firewall rules — we say so explicitly rather than assuming your host behaves like ours.
Why commands instead of screenshots?
Screenshots go stale within a release cycle and cannot be copied, diffed or audited. Commands can be pasted into a terminal, compared against what you already run and reviewed by a colleague, which is what production work actually requires.
Do you accept payment for featuring a tool or plugin?
No. There are no sponsored placements and no affiliate links anywhere in this library. Where a third-party project's own documentation is better than ours, the guide points there rather than paraphrasing it badly.
What happens to a guide that becomes outdated?
It is unpublished rather than left online with instructions that no longer work. A guide we cannot verify is worse than no guide at all, because you would follow it believing it had been checked.
A guide gets you close. A human gets you home.
If a runbook stops making sense halfway — a permission you did not expect, a service that will not come back, a migration window you cannot afford — send the exact output you are seeing, your distribution and what changed just before. Real logs beat real guesses.
- First reply within 60 business minutes
- Read by an engineer
- No obligation to order
Guides describe third-party software and services, which remain the trademarks of their respective owners. Commands are provided for guidance, without warranty of results — take a snapshot and test on a non-production instance before applying anything to a live server. Never paste a command you have not read. All hosting prices are quoted and invoiced in USD, any applicable tax is calculated at checkout, and new subscriptions carry a 30-day money-back guarantee refunded to the original payment method. No guide on this page implies a discount, a refund entitlement or a variation to the published terms.
