MeshCentral is an open-source remote management and device management solution that you run yourself. A small agent runs on every computer you want to manage. It establishes an encrypted connection to your MeshCentral server on its own. In your browser, you can then access the screens, terminals, and files of your Windows, Linux, and Mac computers, whether they are at the office, at home, or at a customer's location. You don't need to configure port forwarding on the routers used by the managed devices.
In this guide, we'll show you two ways to set it up: the easy way as a One-Click App, where MeshCentral runs with HTTPS and a ready-to-use administrator account at your own address, and a manual installation with Docker Compose. Afterward, you'll connect your first devices and create additional users.
MeshCentral is the right choice if:
- You manage multiple computers remotely, such as the PCs used by your family, a small office, or your customers, and don't want to use a remote management service that charges a license fee per device.
- You want connections to run through your own server. Sessions don't go through a third-party provider's servers.
- You manage a mix of systems. Agents are available for Windows, Linux, and macOS, and you manage them all in your browser.
- The devices are behind NAT or use changing internet connections. The agent connects from the device to your server over HTTPS, so the devices don't need to accept incoming connections on any ports.
A VPS is ideal for this because it's available around the clock and has a fixed IP address. MeshCentral is less suitable if you only occasionally help a single friend with their screen. Running your own server is more work than necessary for that.
The quickest way to get MeshCentral is through your VPS's One-Click Apps. The app is accessible over HTTPS right away, the administrator account is already set up, and the agents connect through the same address. You don't need to configure a reverse proxy, certificate, or firewall rules.
- A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. See Set Up One-Click Apps for instructions.
- MeshCentral requires at least 1 vCore and 512 MB of RAM; 2 vCores and 1 GB are recommended. Requirements increase with the number of devices and stored files.
- Open your VPS in the ZapX dashboard and go to the One-Click Apps tab.
- Search for MeshCentral in the App catalog and click Install app.
- Use a custom subdomain or zap.cloud is already selected. Leave this option enabled and enter a name, for example,
remote-support. Agents will later connect to the server over HTTPS using this exact address, so MeshCentral always needs a domain. With zap.cloud, ZapX adds your server number to the name; you'll see the complete address in the form. - You don't need to enter anything under App configuration. ZapX automatically generates the password for the administrator account.
- Click Queue installation. After one to two minutes, MeshCentral will appear online on the app card.
Find the credentials for your first login as follows:
- Username:
admin(fixed) - Password: In the app settings (gear icon), under App environment, look in Automatically generated values for the variable
SERVICE_PASSWORD_MESHCENTRALADMIN.
Open the app's Access link and sign in with these credentials. MeshCentral's interface is in English, so this guide uses the English labels.
The One-Click App creates the admin account on first startup, before MeshCentral is accessible. Self-registration is disabled, so anyone who finds your address can't create their own account. Only you, as the administrator, can create new users.
Change your password right away in MeshCentral under My Account. You can't edit the field under App environment; it always shows the password from the installation. Once you change your password in MeshCentral, that old value no longer works. You can also set up two-factor authentication with an authenticator app under My Account. This is strongly recommended for a remote access account.
In MeshCentral, agents always belong to a device group. After your first login, the My Devices list is empty:
- Click click here to create a device group.
- Enter a Name, for example,
Office PCs. - Leave Type set to Manage using a software agent and click OK.
The Add Agent and Invite links will then appear next to the group name. See “Connect Devices to MeshCentral” below to learn how to connect devices.
MeshCentral automatically picks up the app address each time it starts. However, each agent's server address is set when the agent is installed. If you change the app's domain later, all previously connected devices will lose their connection, and you'll need to reinstall the agents. Choose the address you want to keep from the start.
To check for a new version, go to App update in the app settings (gear icon) and click Check for updates. To install an update, click Apply update. Users, device groups, and certificates are retained, and connected agents will automatically reconnect after the restart.
MeshCentral stores its database, configuration, and server certificates in the meshcentral-data volume, while uploaded files are stored in meshcentral-files. Back up your VPS regularly from the Backups tab. The certificates are especially important: every agent knows your server's key. If it's lost, the agents won't connect, and you'll need to reinstall them on every device.
The rest of this guide covers a manual installation of MeshCentral with Docker Compose on your VPS, for example, if you don't use One-Click Apps on your server. It's based on the official MeshCentral Docker setup and the documentation.
- A Linux VPS running Debian or Ubuntu, with SSH access. See First Access Over SSH.
- Docker and Docker Compose. See Install Docker. Check the installation with
docker --versionanddocker compose version. - A domain or subdomain whose A record points to your VPS's IP address (e.g.,
mesh.example.com). Agents require HTTPS with a valid certificate.
These specifications are enough to get started with a few dozen devices:
| Minimum | Recommended | |
|---|---|---|
| CPU | 1 vCore | 2 vCores |
| RAM | 512 MB | 1 GB |
| Storage | 2 GB | 10 GB |
MeshCentral runs in the container without its own certificate. HTTPS is handled by a reverse proxy (nginx) on the server. So only open SSH and the ports used by the reverse proxy:
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable
sudo ufw status
In the Compose file, bind MeshCentral's own port to 127.0.0.1 only. Docker adds its own firewall rules and bypasses ufw. Binding to 127.0.0.1 ensures that MeshCentral is only accessible to the reverse proxy on the same server.
Create a directory and go to it:
mkdir -p ~/meshcentral
cd ~/meshcentral
Create a file named compose.yml in that directory using nano compose.yml, and add the following content. Replace mesh.example.com in both places with your domain:
services:
meshcentral:
image: ghcr.io/ylianst/meshcentral:1.3.1
restart: unless-stopped
environment:
- DYNAMIC_CONFIG=true
- HOSTNAME=mesh.example.com
- REVERSE_PROXY=mesh.example.com
- REVERSE_PROXY_TLS_PORT=443
- TLS_OFFLOAD=172.16.0.0/12
- ALLOW_NEW_ACCOUNTS=false
- PORT=443
- REDIR_PORT=80
ports:
- "127.0.0.1:4430:443"
volumes:
- ./data:/opt/meshcentral/meshcentral-data
- ./files:/opt/meshcentral/meshcentral-files
- ./web:/opt/meshcentral/meshcentral-web
- ./backups:/opt/meshcentral/meshcentral-backups
The most important lines:
DYNAMIC_CONFIG=truewrites the values fromenvironmentto thedata/config.jsonconfiguration file at each startup. Without this line, the image only uses the variables on the very first startup.HOSTNAMEis the address browsers and agents use to access MeshCentral.REVERSE_PROXYandREVERSE_PROXY_TLS_PORTtell MeshCentral where to find the reverse proxy's certificate. Agents verify this exact certificate.TLS_OFFLOADswitches MeshCentral to unencrypted HTTP behind the proxy and trusts forwarded headers only from the Docker network (172.16.0.0/12).ALLOW_NEW_ACCOUNTS=falsedisables self-registration.127.0.0.1:4430:443makes MeshCentral accessible only locally, on port4430.
Start MeshCentral:
docker compose up -d
docker compose logs -f
On the first startup, MeshCentral creates certificates and a database, then downloads the agent files. This takes one to two minutes. When MeshCentral HTTP server running on port 443 appears in the log, stop displaying the logs with Strg+C.
As long as no account exists, the first account created automatically becomes an administrator, even when self-registration is disabled. The log will then show Server has no users, next new account will be site administrator. So create the account from the command line before MeshCentral is accessible from the internet. You can only do this while MeshCentral is stopped:
docker compose stop
docker compose run --rm --entrypoint node meshcentral /opt/meshcentral/meshcentral/meshcentral --configfile /opt/meshcentral/meshcentral-data/config.json --createaccount admin --pass 'DEIN_PASSWORT' --email admin@example.com
docker compose run --rm --entrypoint node meshcentral /opt/meshcentral/meshcentral/meshcentral --configfile /opt/meshcentral/meshcentral-data/config.json --adminaccount admin
docker compose start
Both commands will show Done. if successful. Choose a long, random password. It will then be stored in your shell history, so change it under My Account after your first login.
First, get a Let's Encrypt certificate for your domain, for example, with Certbot. See Set Up an SSL Certificate with Certbot for instructions. For general information about nginx as a reverse proxy, see Set Up a Reverse Proxy.
Then create this server block with sudo nano /etc/nginx/sites-available/meshcentral:
server {
listen 443 ssl;
server_name mesh.example.com;
ssl_certificate /etc/letsencrypt/live/mesh.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mesh.example.com/privkey.pem;
proxy_send_timeout 330s;
proxy_read_timeout 330s;
location / {
proxy_pass http://127.0.0.1:4430/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
The lines containing Upgrade and Connection are required: agents, the terminal, and remote desktop use WebSockets. The long timeouts prevent nginx from disconnecting the agents' persistent connections after one minute.
Enable the site and reload nginx. Then restart MeshCentral once so it can retrieve the certificate from the reverse proxy:
sudo ln -s /etc/nginx/sites-available/meshcentral /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl reload nginx
cd ~/meshcentral && docker compose restart
Now go to https://mesh.example.com and sign in with the admin account. Once the administrator account exists, the login page no longer has a registration link.
All data is in the ~/meshcentral directory: the database, configuration, and certificates are in data, and uploaded files are in files. To create a complete backup, briefly stop MeshCentral and archive the directory:
cd ~/meshcentral
docker compose stop
sudo tar czf ~/meshcentral-backup-$(date +%F).tar.gz data files web
docker compose start
Then copy the archive to another computer. It contains your server's private keys, so keep it as secure as a password.
Before updating, read the release notes and back up your data as described above. Then enter the new version for image in compose.yml and restart the container:
cd ~/meshcentral
nano compose.yml
docker compose pull
docker compose up -d
The agents will then automatically update to the appropriate version when they reconnect.
The steps from here on are the same for both installation methods.
In My Devices, click Add Agent next to your device group. Under Operating System, select the device's operating system:
- Windows: Download the appropriate version for the computer, for example, Windows x86-64 (.exe), run the file on the computer with administrator privileges, and click Install.
- Linux / BSD: MeshCentral displays a ready-to-use command. Click Copy and run it as root on the Linux computer. The script downloads the agent and sets it up as a service.
- Apple macOS: Download the installation package and install it on the Mac. Then grant the agent Screen Recording and Accessibility permissions in System Settings. Otherwise, the screen will remain black during remote control.
Under Installation Type, choose whether the agent runs in the background only (Background only), is started by the user only when needed (Interactive only), or does both (Background & interactive). For your own computers, Background & interactive is the usual choice.
The device will appear in the group after a few seconds. The Agent status indicates that the agent is connected.
Download links and commands under Add Agent contain your device group's identifier. Anyone who has them can add their own devices to that group. Don't share them publicly. For individual people, use Invite instead: it creates an invitation link that expires after the time you choose.
Click a device to open its details page. The tabs for remote management are at the top:
- Desktop: View and control the screen. This tab appears for devices with a graphical interface.
- Terminal: The device's command line: PowerShell or CMD on Windows, and a shell on Linux.
- Files: Upload, download, rename, and delete files.
- Events and Details: View the activity history and hardware information for the device.
Start each connection by clicking Connect in the relevant tab. Under User Consent on the General tab, you can choose whether the device's user must approve each session first. This is useful when you manage other people's computers.
As an administrator, create additional accounts in My Users, the user management section. Then assign permissions in the device group to control which devices each user can view and manage. For example, a colleague can manage only the office PCs, but not the servers.
- Nothing works without an agent: MeshCentral can only control devices that have an agent running. For remote access over RDP, VNC, or SSH without an agent, a remote desktop gateway such as Apache Guacamole is a better fit.
- Intel AMT over CIRA: Managing Intel AMT devices through a dedicated AMT connection (port 4433) isn't enabled in the One-Click App. The app is only accessible over port 443.
- Bandwidth: Remote desktop sessions run through your VPS. Many simultaneous sessions at high quality will use a corresponding amount of traffic.
With MeshCentral, you now have your own remote management for all your computers, with no per-device license fees and no third-party servers in between. To keep track of devices, licenses, and accessories, the guide Set Up Snipe-IT on a Linux Server shows you how to run your own IT asset management.
If you have any other questions or need help, our support team is available every day! 🙂
