Tutorial • Updated May 2026

How to Set Up Ubuntu on Vultr VPS — Complete 2026 Guide

From zero to a production-ready Ubuntu 24.04 server in under 30 minutes. Covers deployment, hardening, Docker, and firewall setup.

If you're spinning up a new project and need a Linux server that's fast, reliable, and affordable, Vultr remains one of the best choices in 2026. With plans starting at $2.50/month, global data centers, and SSD-first storage, it's a favorite among developers and small businesses alike. This guide walks you through the entire process of setting up Ubuntu 24.04 LTS on Vultr — from deploying your instance to locking it down for production use.

1. Why Choose Vultr for Ubuntu in 2026

Vultr competes head-to-head with DigitalOcean, Linode (now Akamai), and AWS Lightsail, but consistently edges them out in two areas: pricing transparency and deploy speed. Vultr's instances spin up in under 60 seconds, and you pay for exactly what you use — no hidden egress fees catching you off guard like on AWS.

Key advantages of Vultr for Ubuntu hosting:

2. Vultr Pricing Overview 2026

Vultr's pricing is refreshingly straightforward. No tiered "burstable" tricks — just clear, linear pricing based on resources. Here's what a typical Ubuntu VPS costs in 2026:

Plan vCPUs RAM Storage Bandwidth Price/mo
Starter 1 512 MB 10 GB NVMe 500 GB $2.50
Basic 1 1 GB 25 GB NVMe 1 TB $5.00
Standard 2 2 GB 55 GB NVMe 2 TB $10.00
Professional 4 4 GB 85 GB NVMe 3 TB $20.00
Performance 8 8 GB 160 GB NVMe 5 TB $40.00
💡 Pro tip: The $5/month plan (1 vCPU, 1GB RAM, 25GB NVMe) is the sweet spot for most personal projects, small websites, and development environments. You can always scale up later — Vultr makes upgrading seamless.

3. Deploy Your Ubuntu Instance

Step 1: Create Your Vultr Account

If you don't have an account yet, sign up via this referral link — it helps support this guide at no extra cost to you. Vultr requires email verification but no credit card for the free $250 trial credit on new accounts.

Step 2: Choose Your Server Location

From the Vultr dashboard, click Deploy → Deploy New Instance. Pick the location closest to your users. For Asian traffic, Tokyo or Singapore gives the lowest latency. For European audiences, Frankfurt or Amsterdam is ideal.

Step 3: Select Ubuntu 24.04 LTS

Under Choose Image, select Ubuntu 24.04 LTS (x64). This is the latest Long-Term Support release, with security updates guaranteed through 2029. Avoid older Ubuntu versions unless you have a specific compatibility requirement.

Step 4: Choose Your Server Size

Select the plan that fits your workload (see the pricing table above). For a general-purpose web server, the $10/month Standard plan is a solid starting point.

Step 5: Configure SSH Key (Recommended)

Before deploying, add your public SSH key under Add SSH Keys. This lets you log in without a password and is significantly more secure than password authentication. If you don't have an SSH key yet:

# On your local machine, generate an Ed25519 key (recommended)
ssh-keygen -t ed25519 -C "your_email@example.com" -f ~/.ssh/vultr_ubuntu

# Display your public key to copy into Vultr dashboard
cat ~/.ssh/vultr_ubuntu.pub

Step 6: Finalize and Deploy

Give your server a hostname (e.g., ubuntu-web-01), click Deploy Now, and watch it spin up. In most cases, your server is ready within 30–60 seconds.

⚠️ Save your credentials: Vultr will email you the root password if you didn't add an SSH key. Save it in your password manager — you'll need it for the initial login.

4. Connect to Your Server

Once your instance is running, grab the IP address from the Vultr dashboard. Connect via SSH:

ssh root@YOUR_SERVER_IP

# If using an SSH key:
ssh -i ~/.ssh/vultr_ubuntu root@YOUR_SERVER_IP

On first login, you'll be prompted to change the root password. Choose a strong, unique password — this is the root account with full system access.

5. Initial Security Hardening

Out of the box, Ubuntu is reasonably secure, but there are a few essential steps before you put anything into production:

Update System Packages

apt update && apt upgrade -y

Create a Regular User

Never run services as root. Create a regular user with sudo access:

adduser deploy
usermod -aG sudo deploy

# Switch to the new user
su - deploy

Disable Root Login (Critical)

sudo nano /etc/ssh/sshd_config

Find and change these lines:

PermitRootLogin no
PasswordAuthentication no
PubkeyAuthentication yes

Then restart the SSH service:

sudo systemctl restart sshd
⚡ Important: Before logging out, open a second SSH session to verify your new credentials work. Locking yourself out of your own server is a rite of passage nobody wants to repeat.

6. Install Docker on Ubuntu

Docker has become the default way to run applications on VPS servers. Here's the fastest way to get Docker installed on Ubuntu 24.04:

# Install prerequisites
sudo apt install -y ca-certificates curl gnupg

# Add Docker's official GPG key
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg

# Add Docker repository
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

# Install Docker Engine
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

# Add your user to the docker group
sudo usermod -aG docker deploy

Log out and back in for the group change to take effect. Verify Docker is running:

docker run hello-world

7. Configure UFW Firewall

Ubuntu includes UFW (Uncomplicated Firewall) by default. Enable it and allow only the ports you need:

# Default policies
sudo ufw default deny incoming
sudo ufw default allow outgoing

# Allow SSH (must do this before enabling firewall!)
sudo ufw allow 22/tcp

# Allow web traffic (HTTP + HTTPS)
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp

# Enable the firewall
sudo ufw enable

# Check status
sudo ufw status verbose
💡 Port 22 warning: If you enable UFW without first allowing port 22/tcp, you'll lock yourself out immediately. The order above is intentional — allow SSH first, then enable the firewall.

8. Next Steps — What to Build Next

With Ubuntu running, hardened, and Docker installed, you're ready to deploy actual workloads. Here are the most popular next steps:

For gaming or betting platform hosting, Vultr's high-frequency CPU instances and NVMe storage deliver excellent performance. Check out our comprehensive Vultr setup guides for more use-case-specific tutorials.

Ready to Spin Up Your Ubuntu Server?

Get started with Vultr today. Plans from $2.50/month with free $250 trial credit for new accounts.

🚀 Deploy on Vultr — Free $250 Credit
V
Vultr Guide Team Updated May 8, 2026 · 9 min read · VPS & Cloud Hosting Tutorials