Skip to content
Back to Blog
Linux & Server12 min read

How to Set Up VPS Hosting: 8 Providers Benchmarked

A complete beginner walkthrough of VPS hosting setup—definitions, provider comparison, and your first working server in under an hour.

Written by Abdul AbrorTechnical Hosting Support Engineer
How to Set Up VPS Hosting: 8 Providers Benchmarked
On this page

You want more control than shared hosting offers but the terminology feels foreign. VPS hosting sits between shared plans and dedicated servers—you get your own slice of a physical machine, isolated from other users, with root access to install what you want. This guide assumes you've never touched a command line and walks you through choosing a provider, spinning up your first server, and logging in.

What VPS hosting actually means

VPS stands for Virtual Private Server. One physical server runs multiple virtual machines, each acting like an independent computer. You get guaranteed RAM, CPU cores, and disk space. Unlike shared hosting where one site's traffic spike slows everyone down, your resources stay yours.

The virtualization layer (KVM, VMware, or Xen) creates this isolation. You can reboot your VPS without affecting neighbors. You install your own software, open firewall ports, and choose your operating system. The trade-off? You're responsible for security patches, backups, and server configuration.

Eight providers compared

I've deployed servers on all eight platforms below over the past three years of support work. Pricing shifts constantly so I won't quote exact numbers—check current rates on each site. What matters more: deployment speed, uptime, and whether the control panel makes sense.

DigitalOcean bills by the hour, destroys your server data when you delete a droplet unless you take snapshots, and gives you a clean dashboard. Documentation is thorough. Their entry tier gets you 1 GB RAM and 25 GB SSD in six global regions.

Linode (now Akamai) offers similar specs with slightly different regional coverage. The interface feels less polished but the API is solid. Block storage volumes persist independently of your instance.

Vultr matches the previous two on price and adds more locations. High-frequency compute instances use NVMe drives if you need faster disk I/O. Snapshots cost extra.

Hetzner undercuts US providers on price because their data centers sit in Europe. Network latency to North America is higher but acceptable for many use cases. You get more RAM per dollar.

Amazon Lightsail wraps AWS EC2 in a simpler interface with fixed monthly pricing. It hides complexity but limits you when you outgrow the beginner tier. SSH key management integrates with the rest of AWS if you expand later.

Google Cloud Compute Engine free tier includes one f1-micro instance in three US regions. The console overwhelms newcomers. Billing is granular and easy to miscalculate.

Kamatera lets you customize CPU, RAM, and storage independently during provisioning. The dashboard looks dated but the flexibility is real. Support responds faster than the giants.

Contabo offers the most RAM and storage per dollar but oversells heavily. Performance varies. Deployment takes hours instead of seconds. Only consider them for non-critical projects.

Why I recommend two for beginners

DigitalOcean and Linode both give you working servers in under ninety seconds and charge predictably. Their tutorials cover common tasks without assuming expert knowledge. When something breaks at 2 AM, their community forums have answers. Start with one of these unless you have a specific reason (GDPR compliance pointing you to Hetzner, existing AWS credits, etc.).

Step one: create an account

Pick DigitalOcean for this walkthrough. The steps translate to other providers with minor changes.

Go to digitalocean.com and click the signup button. You'll verify your email, then add a payment method. Most providers charge a small authorization hold to confirm the card works.

Once inside the dashboard, look for "Create" and choose "Droplets" (their term for VPS instances).

Step two: configure your server

Choose an operating system

The first dropdown lists distributions. Ubuntu appears at the top because it's the most popular choice for web servers. The LTS (Long Term Support) release gets five years of security updates.

Pick Ubuntu 22.04 LTS unless you already know you need something else. CentOS disappeared after Red Hat's policy change; Rocky Linux and AlmaLinux replaced it but have smaller communities.

Pick your plan

Basic shared CPU plans work fine for learning. You'll see options like:

  • 1 GB RAM / 1 CPU / 25 GB SSD
  • 2 GB RAM / 1 CPU / 50 GB SSD
  • 2 GB RAM / 2 CPUs / 60 GB SSD

Start with the 1 GB tier. You can resize later, though it requires a reboot.

Select a data center region

Choose the location closest to your target audience. If you're in Lagos serving Nigerian users, the London or Amsterdam regions give better latency than San Francisco. You can test ping times to different regions before deciding.

Authentication method

Here's where SSH keys come in. You could use a password but key-based authentication is more secure and required by many servers by default.

Generate an SSH key pair

On your local computer, open a terminal (macOS/Linux) or PowerShell (Windows 10+). Type:

ssh-keygen -t ed25519 -C "[email protected]"

Press Enter to accept the default file location (~/.ssh/id_ed25519). Set a passphrase or leave it empty for this first test server.

The command creates two files: - id_ed25519 (private key—never share this) - id_ed25519.pub (public key—safe to distribute)

Display your public key:

cat ~/.ssh/id_ed25519.pub

Copy the entire output (starts with ssh-ed25519).

Back in the DigitalOcean control panel, click "New SSH Key" and paste the public key. Give it a name like "laptop-2026". Check the box next to this key.

Hostname and tags

Name your server something memorable. I use patterns like web-prod-01 or test-ubuntu-01. Tags help when you manage dozens of servers later; skip them for now.

Click "Create Droplet". Provisioning takes 30-60 seconds.

Step three: log in via SSH

The dashboard now shows your new server with an IP address like 167.99.234.123. Copy that IP.

In your terminal:

ssh [email protected]

Replace the IP with yours. The first connection prompts you to verify the host fingerprint—type yes.

You're in. The prompt changes to root@your-hostname:~#.

What just happened?

SSH (Secure Shell) encrypted your connection. Your private key proved your identity without sending a password over the network. The server's public key (which you just verified) prevents man-in-the-middle attacks.

Step four: initial server hardening

Logging in as root is convenient but risky. Create a regular user with sudo privileges.

adduser deploy

Set a password when prompted. Accept the defaults for full name and other fields (press Enter).

Grant sudo access:

usermod -aG sudo deploy

Copy your SSH key to the new user:

rsync --archive --chown=deploy:deploy ~/.ssh /home/deploy

Test the new account in a second terminal window:

ssh [email protected]

Once confirmed working, disable root SSH login. Edit the SSH daemon config:

sudo nano /etc/ssh/sshd_config

Find the line PermitRootLogin yes and change it to:

PermitRootLogin no

Save (Ctrl+O, Enter) and exit (Ctrl+X). Restart SSH:

sudo systemctl restart sshd

From now on, log in as deploy and use sudo for administrative tasks.

Step five: update packages and configure the firewall

Ubuntu's package manager is apt. Update the package list and upgrade installed software:

sudo apt update
sudo apt upgrade -y

The -y flag auto-confirms prompts. This takes a few minutes on a fresh install.

Enable the uncomplicated firewall (ufw):

sudo ufw allow OpenSSH
sudo ufw enable

Check status:

sudo ufw status

You'll see port 22 allowed. When you install a web server later, add port 80 and 443 the same way.

What to do next

You now have a working VPS you can access securely. The usual next steps:

  1. Install a web server (Nginx or Apache) if you're hosting sites
  2. Point a domain by creating an A record at your DNS provider
  3. Set up automatic security updates with unattended-upgrades
  4. Configure backups—most providers offer snapshot scheduling

Shared hosting control panels (cPanel, Plesk) can be installed on a VPS but eat 1-2 GB of RAM. Many admins skip them and manage everything via command line and config files. If you're moving from shared hosting, expect a learning curve but much more flexibility.

Your first hour accomplished

You went from "what's a VPS" to a live server you control. The hardest parts—choosing a provider and understanding SSH keys—are behind you. Everything else is installing software and editing config files, which you can look up as needed.

Providers change pricing and features constantly, so those benchmarks age quickly. What stays constant: the workflow of provisioning, connecting, and hardening. You'll repeat these steps every time you spin up a new server. Automate them eventually with tools like Ansible or Terraform, but manual practice teaches you what can break.

FAQ

How much does VPS hosting cost?

Entry-level plans start around $4-6 per month for 1 GB RAM. Prices scale with resources. Bandwidth is usually unmetered on modern providers.

Can I run Windows on a VPS?

Yes, but licensing costs more. Most web hosting workloads run on Linux. Windows VPS makes sense for .NET applications or if you need Remote Desktop.

What if I delete my VPS by accident?

Your data is gone unless you took snapshots or backups. Providers don't keep deleted instance data. Automate backups from day one.

Do I need a VPS if I only run WordPress?

Managed WordPress hosts handle updates and caching for you. A VPS gives you more control but requires more maintenance. Start managed, migrate to VPS when you outgrow it or need custom configurations.

How is VPS different from cloud hosting?

Marketing blur these terms. Technically, VPS means one virtual server with fixed resources. Cloud hosting often implies auto-scaling across multiple servers. For small projects, the difference doesn't matter.