This guide explains how to set up a Minecraft server on a VPS using three popular server types: Forge, Fabric, and Paper. Instructions assume you have basic Linux command-line experience and root or sudo access to your VPS.
Prerequisites
A VPS with at least 2 CPU cores, 4GB RAM, and SSD storage (for modded servers, more resources may be needed).
A 64-bit Linux distribution (Ubuntu 20.04+ or Debian 11 recommended).
Step 0: Connect to Your VPS from Windows
Before installing a Minecraft server, you need to connect to your VPS. If you're using Windows, you have two main options:
Option 1: Using Windows Terminal / PowerShell
Press Win + S and type “Terminal” or “PowerShell” – Then click Windows Terminal or PowerShell to open it.
Use the following command to connect (replace with your actual address and port):
Connects to the server via SSH
ssh root@YOUR_SERVER_IP -p PORT
ssh root@192.0.2.10 -p 22
When prompted, enter the password you received by email. (See the message from VirtFusion — the password is next to Password:)
Option 2: Using PuTTY (if you prefer a GUI)
Download PuTTY from: https://www.putty.org/
Open PuTTY
In the Host Name (or IP address) field, enter your VPS IP
Set the Port (default is 22, change if needed)
Click Open
When the terminal appears, log in with:
Username: root
Password: (from the VirtFusion email)
Step 1: Install Required Packages
17 Java:
Update package list and upgrade existing packages: