Budget VPS hosting has become real over the past few years. Providers now offer working virtual servers for less than a cup of coffee each month, and you can have one running in under twenty minutes if you know the steps.
I've provisioned dozens of these during support escalations and personal projects. The process is nearly identical across providers once you understand the pattern: pick a plan, choose an OS image, provision the machine, log in via SSH, harden security, and verify services. This guide walks you through that process with eight providers that consistently offer plans under five dollars monthly, plus the post-provisioning checklist every VPS needs.
Why VPS hosting instead of shared
Shared hosting locks you into a control panel and limits what you can install. A VPS gives you root access, your own IP address, and the ability to run any stack you want. You can host multiple sites, install custom software, configure firewalls, and learn Linux administration without breaking a production environment.
The tradeoff is responsibility. Nobody manages security patches or server monitoring for you. If you misconfigure SSH or forget firewall rules, your server becomes a spam relay or cryptominer by morning. That risk is why the hardening steps later in this guide matter.
Eight providers with plans under five dollars
Pricing shifts constantly, so I'm not listing exact numbers. Each of these providers has offered sub-five-dollar monthly plans recently:
- Vultr – bare-metal and cloud compute instances, hourly billing, multiple data center locations
- Linode (Akamai) – long-standing reputation, shared and dedicated CPU options
- DigitalOcean – clean interface, extensive documentation, popular with developers
- Hetzner Cloud – European provider with strong price-to-performance ratio
- Contabo – very low entry price, Germany-based, larger storage allocations
- Hostinger VPS – managed panel option available, good for first-time VPS users
- IONOS – enterprise-focused but offers budget tiers, includes basic DDoS protection
- OVHcloud – France-based, massive infrastructure, bare-metal and cloud options
All support standard Linux distributions. Most bill hourly or monthly. Check current pricing before committing because promotional rates expire and resource allocations change.
Step one: compare specs and pick a provider
Log into each provider's website and compare their lowest-tier VPS plans. Look at four metrics:
- RAM – minimum 512 MB for a basic web server, 1 GB if you plan to run Docker or a database
- Storage – 10 GB is tight but workable; 20-25 GB gives you room for logs and backups
- Transfer – 500 GB to 1 TB monthly is typical; you'll rarely hit it with a small site
- CPU – shared vCPU is fine for low-traffic projects; dedicated cores matter for build servers or busy APIs
Check the data center locations too. If your audience is in Europe, a Singapore server adds 200+ ms latency. Most providers let you test ping times before provisioning.
Create an account with your chosen provider and add a payment method. Some require identity verification before you can provision servers.
Step two: provision your VPS
The dashboard layout differs by provider, but the provisioning flow is always similar.
- Click Create Server, Deploy, or New Instance.
- Choose a data center region close to your users.
- Select an operating system image. For this guide I'll use Ubuntu 24.04 LTS because it's stable, widely documented, and supported until 2029. Debian, Rocky Linux, and AlmaLinux are also solid choices.
- Pick the cheapest plan that meets your RAM and storage needs.
- (Optional) Upload an SSH key now if you have one. If not, we'll disable password auth later.
- Set a hostname – something like
web01ortestbox. - Leave optional features like backups and monitoring unchecked to keep costs down.
- Click Deploy or Create.
Provisioning takes thirty seconds to three minutes. The provider emails you the root password and IP address, or displays them in the dashboard.
Step three: log in via SSH
Open a terminal on your local machine (Windows users can use PowerShell, WSL, or PuTTY). SSH into your new server:
ssh root@YOUR_SERVER_IP
Replace YOUR_SERVER_IP with the actual IP from your dashboard. The first connection prompts you to verify the host key fingerprint – type yes and press Enter.
Enter the root password when prompted. You're now at a root shell on your VPS.
Step four: update the system
Before installing anything, update the package lists and upgrade installed software:
apt update && apt upgrade -y
This takes one to five minutes depending on how old the base image is. Some providers refresh images weekly; others lag behind by months.
Reboot if the kernel was updated:
reboot
Wait thirty seconds, then SSH back in.
Step five: create a non-root user
Running everything as root is dangerous. One typo in a script can wipe your entire filesystem. Create a regular user with sudo privileges:
adduser deploy
Choose a strong password. You can leave the full name and phone fields blank by pressing Enter.
Add the user to the sudo group:
usermod -aG sudo deploy
Test the new account by switching to it:
su - deploy
sudo apt update
Enter the deploy user's password when prompted. If the update runs without errors, sudo is working.
Step six: set up SSH key authentication
Password authentication is a risk. Bots scan for port 22 and brute-force weak passwords around the clock. SSH keys are immune to brute-force because the private key never travels over the network.
On your local machine (not the VPS), generate a key pair if you don't already have one:
ssh-keygen -t ed25519 -C "[email protected]"
Press Enter to save it in the default location (~/.ssh/id_ed25519). Set a passphrase or leave it empty.
Copy the public key to your VPS:
ssh-copy-id deploy@YOUR_SERVER_IP
Enter the deploy user's password one last time. The command appends your public key to ~/.ssh/authorized_keys on the server.
Test key-based login:
ssh deploy@YOUR_SERVER_IP
You should land at a shell without entering a password. If you set a passphrase on your key, your local SSH agent will prompt for that instead.
Step seven: disable password authentication
Now that key auth works, turn off password logins. Still logged in as deploy, edit the SSH daemon config:
sudo nano /etc/ssh/sshd_config
Find these lines and change them to match:
PermitRootLogin no
PasswordAuthentication no
ChallengeResponseAuthentication no
UsePAM no
Some might already be set or commented out. Make sure they're uncommented and set to no.
Save (Ctrl+O, Enter) and exit (Ctrl+X).
Restart SSH:
sudo systemctl restart ssh
Do not close your current SSH session yet. Open a second terminal and try to connect as deploy to verify key auth still works. If it fails, you can fix the config from the first session. If you close the only working session and key auth is broken, you'll be locked out and need to use the provider's web console to recover.
Step eight: configure the firewall
Ubuntu ships with ufw (Uncomplicated Firewall), a simple front-end for iptables. By default everything is open, which means every running service is exposed to the internet.
Allow SSH first so you don't lock yourself out:
sudo ufw allow OpenSSH
Enable the firewall:
sudo ufw enable
Confirm when prompted. Check status:
sudo ufw status
You should see:
Status: active
To Action From
-- ------ ----
OpenSSH ALLOW Anywhere
OpenSSH (v6) ALLOW Anywhere (v6)
As you install web servers or other services, add rules for them:
sudo ufw allow 80/tcp # HTTP
sudo ufw allow 443/tcp # HTTPS
What to install next
Your VPS is now secured and ready for workloads. What you install depends on your project:
- Web server – Nginx is lighter than Apache for static sites and reverse proxying. Install with
sudo apt install nginx, then open port 80 in ufw. - Database – MySQL or PostgreSQL if you need relational storage. MariaDB is a drop-in MySQL replacement with better defaults.
- Runtime – Node.js, Python, PHP, Ruby, or Go depending on your application stack.
- Process manager – systemd for daemons, PM2 for Node apps, Supervisor for Python scripts.
- Monitoring – Netdata or Glances for real-time resource graphs; both run in a browser.
Keep a checklist of what you install. Budget VPS plans don't include automatic backups, so if you lose the server you'll need to rebuild from scratch.
Monitor resource usage
Cheap plans come with tight RAM and CPU limits. A runaway process or memory leak can freeze your VPS in minutes. Check usage with:
free -h
df -h
top
free shows memory, df shows disk space, and top lists running processes sorted by CPU or RAM.
If you hit the RAM limit consistently, the kernel's out-of-memory killer will terminate processes at random. Upgrade to the next plan tier or optimize your stack before that happens.
Automate security updates
Manually running apt upgrade every week is tedious and easy to forget. Ubuntu can install security patches automatically:
sudo apt install unattended-upgrades
sudo dpkg-reconfigure -plow unattended-upgrades
Select Yes when prompted. The system will now apply security updates overnight and log results to /var/log/unattended-upgrades/.
This covers kernel and package vulnerabilities. Application-level updates (WordPress, Node modules, etc.) still need manual attention.
Backup strategy for budget servers
Most providers charge extra for automated snapshots. If you're trying to stay under five dollars, manual backups are your only option.
For configuration files and small databases, use a cron job to rsync or scp to a remote machine you control:
#!/bin/bash
tar -czf /tmp/backup-$(date +%F).tar.gz /etc /var/www /home
scp /tmp/backup-$(date +%F).tar.gz user@backup-host:/backups/
rm /tmp/backup-*.tar.gz
Run it daily via cron:
crontab -e
Add:
0 3 * * * /home/deploy/backup.sh
For databases, dump to SQL before the tar:
mysqldump -u root -p'password' --all-databases > /tmp/db-backup.sql
Store the backup script and credentials outside the VPS. If the server is compromised or dies, you need that data elsewhere.
Common pitfalls after setup
I've seen these mistakes during support tickets:
- Forgetting to renew – some providers pause or delete instances after non-payment. Set a calendar reminder.
- No swap configured – cheap plans often skip swap space. A 1 GB swapfile can prevent out-of-memory crashes:
sudo fallocate -l 1G /swapfile && sudo chmod 600 /swapfile && sudo mkswap /swapfile && sudo swapon /swapfile. - Open ports – every enabled service is a potential attack vector. If you installed MySQL for local use only, bind it to 127.0.0.1 in the config.
- Outdated software – unattended-upgrades won't update manually compiled programs or third-party repos. Check those separately.
What to check first
You now have a secured, updated VPS ready for workloads. The steps above work across all major budget providers with minor command variations. Check your firewall rules, verify SSH key auth, and test resource usage under load before going live. Keep your local machine's SSH keys safe – losing them means rebuilding access from scratch via the provider's console.
Budget VPS hosting trades managed services for control and cost savings. If you're willing to handle patching, backups, and monitoring yourself, you get a real server for less than most streaming subscriptions.
