How to Install Plex Media Server on a Dedicated Server (Step by Step SSH Guide)

Are you looking to build your own personal Netflix? Hosting a Plex Media Server on a Dedicated Server gives you full control, high speed, and the ability to stream 4K content without buffering.

⚠️
Important Note: This guide installs the Free Version of Plex, which works perfectly for Direct Play and Software Transcoding (using CPU). If you need Hardware Transcoding (to offload tasks to the GPU for better performance), you will need to purchase a Plex Pass and enable it in the settings.

What You Need

Before we start, make sure your dedicated server meets these requirements (based on official Plex guidelines)

Requirements
  • Operating System: Linux (Ubuntu 20.04/22.04 or Debian 10/11 is recommended).
  • CPU: Intel Core i3 or higher (For transcoding 1080p/4K content).
  • RAM: Minimum 2GB (8GB recommended for smooth performance).
  • Storage: Enough space for your Movies and TV Shows.
  • Root Access: You need root login details for your server.

Connect to Your Server via SSH

First, you need to log in to your dedicated server.

  • Windows Users: Download and open PuTTY.
  • Mac/Linux: Open your Terminal.

Run the following command (replace with your server IP):

1
Login as Root

You must log in to your server via SSH as the root user.

Bash ssh root@your-server-ip

Enter your root password when prompted.

Update Your System

Before installing Plex, it is crucial to update your server packages to avoid conflicts. Run these commands:

2
Update

This ensures your OS is fresh and secure

Bash apt update && apt upgrade -y

Install Plex Media Server (The Professional Way)

Instead of downloading a single file, we will add the official Plex repository. This ensures your Plex server updates automatically whenever you update your system

3
Add Plex to your server's list
Bash echo deb https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
4
Add the security key (GPG Key):
Bash curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add -
5
Update and Install:
Bash sudo apt update sudo apt install plexmediaserver -y

Configure Firewall & Enable Service

Since this is a dedicated server, we need to ensure the firewall allows Plex traffic.

6
Allow Plex Port:
Bash sudo ufw allow 32400/tcp
7
Start and Enable Plex:
Bash sudo systemctl enable plexmediaserver sudo systemctl start plexmediaserver
8
Check Status:
Bash sudo systemctl status plexmediaserver

🟢 You should see Active: active (running).

The Tunneling Trick (Crucial Step for Remote Servers)

⚠️
Important Note: Since your server is in a data center (in the USA) and you are at home, Plex might not let you "Claim" the server initially for security reasons. You need to create an SSH Tunnel.
For Windows (PuTTY):
  • Open PuTTY.
  • Go to Connection > SSH > Tunnels.
  • Source Port 8888
  • Destination: localhost:32400

9
For Mac/Linux Terminal

Open a new terminal window on your computer (not the server) and run

Bash ssh root@your_server_ip -L 8888:localhost:32400

Now, open your web browser on your computer and type: http://localhost:8888/web

This makes Plex think you are sitting right next to the server!

Setup Your Plex Media Server

Now you should see the Plex Setup Wizard in your browser.

  • Log in: Sign in with your generic Google/Facebook or Plex account (Free).
  • Name Your Server: Give it a cool name (e.g., "Servers99-Media-Beast").
  • Remote Access: Make sure to check the box Allow access to my media from outside my home network. This allows you to stream on your phone or TV without the tunnel later.
  • Add Libraries: Click Add Library, select Movies, and point it to the folder where you will upload your files.

How to Upload Movies & Fix Permissions

Use FileZilla to upload your movies to a folder (e.g., /var/lib/plexmediaserver/Movies ).

⚠️
Important Note: Since you uploaded files as root, (which runs as a restricted user) might not be able to read them. You must fix the permissions.

After uploading your files, run this command via SSH:

10
Bash sudo chown -R plex:plex /var/lib/plexmediaserver/Movies

(Run this command every time you upload a new batch of movies to ensure they appear in your library).

Finalize and Stream

Close the SSH tunnel. Now you can access your Plex server from anywhere in the world by going to: http://your_server_ip:32400/web

Or simply download the Plex App on your Smart TV, Android, or iPhone, sign in, and your servers99 dedicated server will appear automatically!

The Smart Way to Stream Plex

Running Plex on a home PC or a cheap VPS brings headaches—constant buffering, low upload speeds, and CPU bottlenecks when transcoding 4K.

Why let poor hardware ruin your movie night? At Servers99, we provide High-Performance Dedicated Servers optimized for media streaming.

100Gbps Unmetered Port
High-Core CPUs
Massive Storage Options
Full Root Access
Build Your Ultimate Media Server with Servers99 Now