What a VPS is
A virtual private server (VPS) is a slice of a physical machine dedicated to you, with your own Linux and terminal access. Providers such as DigitalOcean, Hetzner, Vultr or AWS Lightsail offer them from a few dollars a month.
The basic security steps
- Log in over SSH and update everything:
apt update && apt upgrade. - Create your own user with administrator permissions (
sudo) and stop usingroot. - Use SSH keys instead of a password: you generate a pair on your computer and upload only the public key.
- Disable password login and root login in the SSH configuration.
- Enable the firewall and open only what is needed:
sudo ufw allow OpenSSH
sudo ufw allow 80
sudo ufw allow 443
sudo ufw enable
- Install fail2ban to block addresses that try to guess your access.
- Enable automatic security updates (
unattended-upgrades). - Set the time zone and the provider’s backups.
Common mistakes
- Closing the session before checking that the SSH key works and locking yourself out.
- Opening ports “just to test” and leaving them open, especially database ports.
- Installing everything as root.
- Not keeping a copy of your private key.
How we help
We prepare your server with security best practices and leave you a documented step-by-step so you understand every change.