Knowledgebase

How to Install Debian on a VPS (Step-by-Step Guide) Print

  • 0

This guide explains how to install Debian Linux on a Virtual Private Server (VPS). Debian is known for its stability, security, and low resource usage, making it ideal for servers, hosting environments, and production systems.

You can install Debian using your VPS control panel (recommended) or manually using an ISO image.


Prerequisites

Before starting, ensure you have:

  • An active VPS

  • Access to the VPS control panel

  • Root password or SSH credentials

  • VPS public IP address

  • SSH client:

    • Linux/macOS: Terminal

    • Windows: PowerShell or PuTTY


Method 1: Install Debian via VPS Control Panel (Recommended)

Most VPS providers offer a one-click OS installer.

Steps

  1. Log in to your VPS control panel

  2. Navigate to OS Reinstall / Operating System

  3. Select Debian

  4. Choose a version:

    • Debian 12 (Bookworm) – Recommended

    • Debian 11 (Bullseye)

  5. Set or generate a root password

  6. Click Reinstall / Deploy

  7. Wait 5–15 minutes for installation to complete

The VPS will reboot automatically after installation.


Method 2: Install Debian Using ISO (Advanced Users)

Use this method if your provider allows custom ISO mounting.

Steps

  1. Open the VPS VNC / NoVNC console

  2. Mount the Debian netinst ISO

  3. Reboot the VPS

  4. Follow the Debian installer:

    • Select language, location, keyboard

    • Configure network (DHCP recommended)

    • Set hostname and domain

    • Create root password or standard user

    • Select disk (Guided – use entire disk is recommended)

    • Choose software (SSH server is recommended)

  5. Complete installation and reboot

  6. Unmount the ISO


Connecting to Your Debian VPS

After installation, connect using SSH.

Linux / macOS

 
ssh root@YOUR_SERVER_IP

Windows (PowerShell)

 
ssh root@YOUR_SERVER_IP

Enter the root password when prompted.


Post-Installation Setup (Recommended)

1. Update the System

 
apt update && apt upgrade -y

2. Create a New User (Security Best Practice)

 
adduser username usermod -aG sudo username

Switch to the new user:

 
su - username

3. Secure SSH Access

Edit SSH configuration:

 
nano /etc/ssh/sshd_config

Recommended settings:

 
PermitRootLogin no PasswordAuthentication yes # set to no if using SSH keys

Restart SSH:

 
systemctl restart ssh

4. Enable Firewall (UFW)

 
apt install ufw -y ufw allow OpenSSH ufw enable ufw status

Recommended Debian Versions for VPS

Version Status Recommended
Debian 12 (Bookworm) Stable ✅ Yes
Debian 11 (Bullseye) Old Stable ✅ Yes
Debian 10 (Buster) EOL ❌ No

Troubleshooting

SSH Connection Refused

  • Check SSH service:

 
systemctl status ssh
  • Verify firewall rules:

 
ufw status

VPS Fails to Boot

  • Reinstall Debian from the control panel

  • Confirm correct disk selection

  • Contact your VPS provider for console access


Conclusion

Debian is a powerful and reliable operating system for VPS hosting. Using your VPS control panel is the fastest and safest installation method. After installation, always secure your server by updating packages, creating a non-root user, and enabling a firewall.


Was this answer helpful?

« Back

Chat with us Call us

Looking for the Right Hosting Solution?

Our expert support team is here to guide you to the ideal hosting solution for your specific needs. Get personalized recommendations and answers to all your questions.

Get Expert Consultation

Copyright © 2026 Tupoa Hosting. All Rights Reserved.