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
-
Log in to your VPS control panel
-
Navigate to OS Reinstall / Operating System
-
Select Debian
-
Choose a version:
-
Debian 12 (Bookworm) – Recommended
-
Debian 11 (Bullseye)
-
-
Set or generate a root password
-
Click Reinstall / Deploy
-
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
-
Open the VPS VNC / NoVNC console
-
Mount the Debian netinst ISO
-
Reboot the VPS
-
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)
-
-
Complete installation and reboot
-
Unmount the ISO
Connecting to Your Debian VPS
After installation, connect using SSH.
Linux / macOS
Windows (PowerShell)
Enter the root password when prompted.
Post-Installation Setup (Recommended)
1. Update the System
2. Create a New User (Security Best Practice)
Switch to the new user:
3. Secure SSH Access
Edit SSH configuration:
Recommended settings:
Restart SSH:
4. Enable Firewall (UFW)
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:
-
Verify firewall rules:
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.