Guide10 min read

Hostinger VPS Setup Guide: From Zero to Running in 15 Minutes

Setting up a Hostinger VPS takes about 15 minutes: purchase a KVM plan, choose your OS and data center, configure SSH keys, connect via terminal, update packages, set up a firewall with UFW, install Docker, and deploy your first application. Hostinger's visual panel handles the initial provisioning, and the rest follows standard Linux server setup.

4.8(156 reviews)
|Updated 2/19/2026

What You Need Before Starting

Before setting up your Hostinger VPS, make sure you have:

  • A Hostinger account with a VPS plan purchased (KVM 1 at $4.99/mo is fine to start)
  • A terminal application (Terminal on Mac, Windows Terminal, or PuTTY on Windows)
  • Basic comfort with typing commands — you don't need to be an expert
  • An SSH key pair (we'll show you how to create one if you don't have it)

Step 1: Provision Your VPS

After purchasing a VPS plan, Hostinger's panel will prompt you to configure your server:

  1. Choose your operating system — we recommend Ubuntu 22.04 LTS for beginners (most tutorials and guides target Ubuntu)
  2. Select your data center — pick the location closest to your users. US East (Ashburn) for North America, Amsterdam for Europe, Singapore for Asia.
  3. Set a root password — make it strong (16+ characters). You'll switch to SSH keys shortly.
  4. Click Create — provisioning takes 1-2 minutes

Once complete, you'll see your server's IP address, root username, and the data center location in the VPS dashboard.

Step 2: Connect via SSH

Open your terminal and connect to your new VPS:

ssh root@YOUR_SERVER_IP

Accept the fingerprint prompt (type "yes"), then enter your root password. You're now connected to your server.

Set up SSH keys (strongly recommended):

# On your LOCAL machine, generate a key pair:
ssh-keygen -t ed25519 -C "your-email@example.com"

# Copy the public key to your VPS:
ssh-copy-id root@YOUR_SERVER_IP

# Test key-based login:
ssh root@YOUR_SERVER_IP  # Should connect without a password

Once key-based login works, disable password authentication for security (see our security guide).

Step 3: Update and Secure Your Server

First things first — update all packages:

apt update && apt upgrade -y

Set up a basic firewall with UFW:

# Install UFW
apt install ufw -y

# Allow SSH (important — don't lock yourself out!)
ufw allow 22/tcp

# Allow HTTP and HTTPS
ufw allow 80/tcp
ufw allow 443/tcp

# Enable the firewall
ufw enable

# Check status
ufw status

Create a non-root user for daily operations:

adduser deploy
usermod -aG sudo deploy

# Copy SSH keys to the new user
rsync --archive --chown=deploy:deploy ~/.ssh /home/deploy

Step 4: Install Docker

Docker is the easiest way to deploy applications on your VPS. Install it with the official script:

curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh

# Allow your non-root user to run Docker
usermod -aG docker deploy

# Install Docker Compose
apt install docker-compose-plugin -y

# Verify installation
docker --version
docker compose version

Docker is now ready. You can deploy any containerized application with a single docker compose up -d command.

Step 5: Deploy Your First Application

Let's deploy a simple Nginx web server to verify everything works:

# Create a project directory
mkdir -p ~/apps/hello-world
cd ~/apps/hello-world

# Create a docker-compose.yml
cat > docker-compose.yml << 'EOF'
services:
  web:
    image: nginx:alpine
    ports:
      - "80:80"
    restart: unless-stopped
EOF

# Start the container
docker compose up -d

Visit http://YOUR_SERVER_IP in your browser — you should see the Nginx welcome page. Your VPS is live!

From here, you can deploy anything: WordPress, Node.js apps, AI agents, Discord bots, or full development environments. Check our guides for specific deployment tutorials.

Frequently Asked Questions

How long does Hostinger VPS provisioning take?

VPS provisioning takes 1-2 minutes after payment. You'll receive your server IP address and can connect via SSH immediately once the status shows 'Running' in the Hostinger panel.

Which OS should I choose for Hostinger VPS?

Ubuntu 22.04 LTS is the best choice for beginners. It has the largest community, most tutorials, and longest support period. For experienced users, Debian 12 is lighter, and AlmaLinux 9 is the CentOS successor for enterprise workloads.

Do I need to know Linux to use Hostinger VPS?

Basic command-line comfort helps, but you can set up most things by following step-by-step guides. Hostinger's visual panel handles OS installs, firewall basics, and monitoring. The AI assistant Kodee can help troubleshoot common issues.

Can I install cPanel on Hostinger VPS?

Yes, but cPanel requires a separate license ($15-45/mo). For a free alternative, install HestiaCP or Webmin — they provide web-based server management with email, DNS, and website hosting features at no extra cost.

How do I keep my Hostinger VPS secure?

Key steps: use SSH keys instead of passwords, set up UFW firewall, create a non-root user, install Fail2Ban to block brute-force attempts, keep packages updated with unattended-upgrades, and use SSL certificates from Let's Encrypt for all web services.

  1. 1

    Purchase and provision your VPS

    Buy a Hostinger KVM plan, choose Ubuntu 22.04 LTS, select your nearest data center, set a root password, and wait 1-2 minutes for provisioning.

  2. 2

    Connect via SSH

    Open your terminal and run: ssh root@YOUR_SERVER_IP. Set up SSH key authentication for security.

  3. 3

    Update packages and configure firewall

    Run apt update && apt upgrade -y, then set up UFW to allow SSH (22), HTTP (80), and HTTPS (443).

  4. 4

    Install Docker

    Run the official Docker install script: curl -fsSL https://get.docker.com | sh. Install Docker Compose plugin.

  5. 5

    Deploy your first application

    Create a docker-compose.yml file and run docker compose up -d to launch your first containerized app.

Get Hostinger VPS — Start in Minutes

Follow along with this guide. Hostinger VPS from $4.99/mo with 30-day money-back guarantee.

Try Hostinger VPS
HF

Henry Fontaine

Chief of Staff & COO, RocketLabs

AI-native operator building the future of search visibility. Part of the team behind 3 tech exits and 400+ programmatic SEO deployments.

SEOAI OptimizationProgrammatic SEOGEOAEO
Follow on X →Published: 2/19/2026Updated: 2/19/2026