Syncthing on a VPS keeping a laptop and a phone in sync
Self-hosting

Syncthing Server Setup: Sync Files Between Devices and a VPS

Your notes are on the laptop, your photos are on the phone, and the one document you need right now is on the desktop at home, which is switched off. Cloud drives solve this by parking every file on someone else’s server. Syncthing takes the opposite approach: your devices talk to each other directly, encrypted, with no account and no company in the middle. There is just one catch, and it is the reason this tutorial exists: two devices can only sync when they are online at the same time. Add a small VPS that never sleeps, and that catch disappears.

In this guide we turn a fresh Debian 13 or Ubuntu 24.04 VPS into an always-on Syncthing node running in Docker. We lock the web interface behind an SSH tunnel and a password, turn on file versioning so an accidental delete does not become a disaster, and add ignore patterns that keep junk files out of your folders. Syncthing is free and open source (MPL-2.0 license); the project lives at syncthing.net and the code at github.com/syncthing/syncthing .

What Syncthing is and why a VPS makes it better

Syncthing is a continuous file synchronization program. You install the same application on every device, choose which folders to share, and Syncthing keeps them identical: when a file changes on one device, the change reaches the others within seconds. There is no central server that “owns” your data. Every device running Syncthing is a node, and all nodes are equal.

Each device has a Device ID, a long string of 8 groups of 7 characters (like MFZWI3D-BONSGYC-...) derived from a cryptographic certificate the device generates on its first start. Two devices only exchange data after you have added each other’s IDs, so knowing an ID alone gives nobody access. Each shared folder has a Folder ID, which is how devices recognize “the same folder” even if it sits at a different path on each machine. All traffic between devices is encrypted with TLS, the same technology that protects HTTPS websites.

To find each other across the internet, devices use the project’s global discovery servers, a kind of phone book that maps device IDs to IP addresses. When a direct connection is impossible, for example because both devices sit behind home routers, Syncthing falls back to public relays that forward the (still encrypted) data. Relays work, but they are noticeably slower.

The catch with pure peer-to-peer sync

Picture this: at 18:00 you edit a spreadsheet on your laptop and close the lid. At 20:00 you open the same folder on your phone. The laptop is asleep, so the phone has nobody to sync with and shows the old version. With two or three devices that are rarely online together, peer-to-peer sync quietly falls behind, and you only notice when you open the wrong version of a file.

The VPS as an always-on node

A VPS fixes this because it is online 24 hours a day. Every device syncs with the VPS whenever it gets the chance, and the VPS passes the changes along later. Your laptop and your phone never need to be online at the same time. You also get some bonuses:

  • The VPS has a public IP address, so your devices reach it directly, without relays.
  • It holds an extra, up-to-date copy of your folders in a data center, not in your backpack.
  • It is the ideal place for file versioning, as we will see in Step 7.

Syncthing does not care that one node is a server. To the protocol, the VPS is just another device that happens to never go offline.

Why we run it in a container

A container is an isolated package holding an application plus everything it needs to run. It shares the host’s Linux kernel but not its files or installed libraries, so it cannot clash with anything else on the server. Docker is the tool that runs containers, and Docker Compose lets us describe the whole setup in one readable YAML file. For Syncthing this means a pinned version, a clean upgrade path (pull a new image, recreate the container) and all data in a single directory you can back up. If you prefer a native install, the project also publishes official packages for Debian and Ubuntu; the concepts below stay the same.

What you need

  • A VPS with Debian 13 or Ubuntu 24.04. 1 vCPU and 1 GB of RAM are plenty for personal use. Size the disk for your data plus room for old versions: around 1.5 to 2 times the amount you sync is a comfortable start.
  • A sudo user with SSH access. We never work directly as root.
  • A KVM VPS is the simplest option. An LXC container works too, but Docker inside LXC needs nesting enabled (see troubleshooting).
  • Syncthing on at least one other device: a laptop or desktop (Windows, macOS, Linux) and, optionally, an Android phone.
  • About 30 minutes.

How the pieces fit together

Before typing commands, let’s look at the target. A port is a numbered door on a server’s network address: different services listen on different ports, so the system knows which program an incoming connection is meant for. Syncthing uses two of them: 22000 (TCP and UDP) for syncing data between devices, and 8384 (TCP) for its web interface, the GUI where you configure everything.

Port 22000 must be reachable from the internet, otherwise your devices cannot connect. Port 8384 must not be: the GUI controls everything, including which devices may read your files. So we bind it to 127.0.0.1, the address a server uses to talk to itself, and reach it through an SSH tunnel.

Syncthing on a VPS: how the pieces fitLaptopSyncthing clientPhoneAndroid appHome desktopSyncthing clientFirewall22000 TCP/UDPopen for sync8384 web GUIlocalhost onlySSH 22admin accessTLS end to endDreamServer VPS, Debian 13 / Ubuntu 24.04Syncthing containersync: 0.0.0.0:22000GUI: 127.0.0.1:8384/srv/syncthing/dataconfig: keys, databaseyour synced folders.stversions (old copies)Your browserlocalhost:9384SSH tunnel on port 22, admin only
Devices sync with the VPS over port 22000, while the Syncthing web GUI never faces the internet and is reached only through an SSH tunnel.

Syncthing server setup, step by step

Here is the whole procedure at a glance. Each box matches one numbered step below.

Syncthing server setup: the 8 steps1Prepare the VPSDocker + firewall2Compose filefolders and ports3Start Syncthingup -d, check logs4Secure the GUItunnel + password5Connect devicesswap device IDs6Share foldersVPS as the hub7Versioningkeep old copies8Ignore patterns.stignore rules
The eight steps of the procedure, numbered exactly like Step 1 to Step 8 in the sections below.

Step 1: Prepare the VPS

Log in over SSH with your sudo user and update the system first:

sudo apt update && sudo apt upgrade -y

If the upgrade installed a new kernel, reboot before continuing. On Ubuntu, the system creates a marker file when a reboot is required, so you can simply check for it:

cat /var/run/reboot-required 2>/dev/null || echo "No reboot needed"

On Debian, this file is not created by default, so the command above will always print “No reboot needed” even when it is not true. On Debian, look at the upgrade output instead: if a linux-image package was upgraded, run sudo reboot and log back in.

Next, install Docker Engine and the Compose plugin from Docker’s official repository. The snippet reads /etc/os-release, so the same commands work on Debian (debian, codename trixie) and Ubuntu (ubuntu, codename noble):

sudo apt install -y ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
. /etc/os-release
sudo curl -fsSL "https://download.docker.com/linux/${ID}/gpg" -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/${ID} ${VERSION_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Check that both pieces are in place:

sudo docker --version
sudo docker compose version

You should see something like Docker version 28.x and Docker Compose version v2.x. Throughout this guide we use sudo docker. Adding your user to the docker group would save typing, but membership in that group is effectively root access, so we keep it explicit.

Now the firewall. We use ufw, a friendly front end for the Linux firewall. On Ubuntu it is preinstalled but inactive; on Debian 13 you have to install it. Always allow SSH before enabling the firewall, or you will lock yourself out:

sudo apt install -y ufw
sudo ufw allow 22/tcp
sudo ufw allow 22000/tcp
sudo ufw allow 22000/udp
sudo ufw enable
sudo ufw status

If your SSH server listens on a different port, allow that port instead of 22. ufw enable asks for confirmation, type y. The status should list 22/tcp, 22000/tcp and 22000/udp as ALLOW.

One important detail: Docker writes its own firewall rules for published container ports, and those rules are evaluated before ufw’s. In practice, any port you publish on all interfaces in a Compose file is reachable from the internet even if ufw does not allow it. That is exactly why, in the next step, we bind the GUI to 127.0.0.1. We do not open port 21027/udp: it is only used for discovering devices on the same local network, which is pointless in a data center.

Step 2: Create the folder layout and the Compose file

Inside the container, Syncthing runs as a regular (non-root) user whose numeric IDs come from the PUID and PGID variables. Matching them with your own user means the files Syncthing writes on the VPS belong to you, so you can read, copy and back them up without fighting permissions. Find your numbers:

id

The output looks like uid=1000(alex) gid=1000(alex) groups=1000(alex),27(sudo). Note the uid and gid values. On Ubuntu cloud images the default ubuntu user is usually 1000, and on Debian the first user you create usually gets 1000 too, but check rather than assume.

Create the directory, give it to your user and open a new Compose file:

sudo mkdir -p /srv/syncthing/data
sudo chown -R "$(id -u):$(id -g)" /srv/syncthing
cd /srv/syncthing
nano compose.yaml

Paste this content, replacing 1000 with your own uid and gid if they differ:

services:
  syncthing:
    image: syncthing/syncthing:2
    container_name: syncthing
    hostname: vps-sync
    environment:
      - PUID=1000
      - PGID=1000
    volumes:
      - ./data:/var/syncthing
    ports:
      - "127.0.0.1:8384:8384"
      - "22000:22000/tcp"
      - "22000:22000/udp"
    restart: unless-stopped
    healthcheck:
      test: curl -fkLsS -m 2 127.0.0.1:8384/rest/noauth/health | grep -o --color=never OK || exit 1
      interval: 1m
      timeout: 10s
      retries: 3

What each part does:

  • image: syncthing/syncthing:2 is the official image, pinned to major version 2. Every docker compose pull brings you 2.x bug fixes and security updates, but never a surprise jump to a future major version with possible breaking changes. Using :latest would always follow the newest release, which is convenient but takes away your control over when a major upgrade happens. Check the available tags on Docker Hub if you want to pin even more precisely.
  • hostname becomes the default device name shown on your other devices.
  • PUID / PGID set the user Syncthing runs as, as explained above.
  • ./data:/var/syncthing is a bind mount: the host directory /srv/syncthing/data appears inside the container as /var/syncthing. Syncthing keeps its configuration in the config subfolder, and your synced folders will live next to it. Remember this mapping, because the GUI always shows the container path.
  • 127.0.0.1:8384:8384 publishes the GUI only on the loopback address, invisible from the internet.
  • 22000:22000/tcp and /udp publish the sync port on all interfaces (UDP is used by the QUIC protocol).
  • restart: unless-stopped brings Syncthing back after a reboot or a crash.
  • healthcheck asks Syncthing’s built-in health endpoint every minute, so docker compose ps can tell you whether it is actually working, not just running.

Save with Ctrl+O, Enter, and exit with Ctrl+X.

Step 3: Start Syncthing and check that it runs

From /srv/syncthing, start the stack in the background:

sudo docker compose up -d

Docker downloads the image (a few tens of MB) and creates the container. Check its state:

sudo docker compose ps

The STATUS column first shows Up ... (health: starting) and, after about a minute, Up ... (healthy). Now read the logs:

sudo docker compose logs --tail 40

On the first start you should see lines about a new device certificate and device ID being generated, the GUI and API listening on port 8384, and listeners for TCP and QUIC on port 22000. The exact wording changes between versions, but errors such as permission denied stand out clearly.

Confirm the ports are bound the way we want:

sudo ss -tulpn | grep -E ':8384|:22000'

You should see 127.0.0.1:8384 and 0.0.0.0:22000 for both TCP and UDP (plus similar [::] lines for IPv6), owned by docker-proxy. If 8384 shows up as 0.0.0.0:8384, stop here and fix the ports section, because your GUI would be exposed. Finally, look at the data directory:

ls -la /srv/syncthing/data

Expect a config directory and, depending on the version, a Sync directory (Syncthing’s default folder), both owned by your user.

Step 4: Secure access to the web GUI

An SSH tunnel forwards a port on your own computer through the encrypted SSH connection to a port on the server. Your browser talks to localhost on your computer, and SSH carries that traffic to 127.0.0.1:8384 on the VPS. Nobody else can reach the GUI, because it never listens on a public address.

On your computer (Linux, macOS and Windows 10/11 PowerShell all include ssh), run:

ssh -N -L 9384:127.0.0.1:8384 youruser@YOUR_VPS_IP

-L 9384:127.0.0.1:8384 means “local port 9384 goes to port 8384 on the server”, and -N tells SSH not to open a shell. The terminal stays open with no output, which is correct; closing it closes the tunnel. We use 9384 locally on purpose: if Syncthing also runs on your laptop, it already occupies 8384, and you would end up configuring your laptop while thinking it is the VPS.

Open http://localhost:9384 in your browser. On first visit, Syncthing asks whether you allow anonymous usage reporting; choose either option. You will then see a warning that GUI authentication is not set. Fix that right away:

  1. Open Actions > Settings > GUI.
  2. Fill in GUI Authentication User and a long GUI Authentication Password, ideally generated by a password manager.
  3. Click Save. The page reloads and asks you to log in.

While you are in Settings > General, set a clear Device Name, such as vps-sync. Why both a tunnel and a password? Defense in depth: if someone edits the Compose file one day and accidentally publishes 8384, the password still stands between the internet and your files. If you need GUI access without SSH, for example for a team, put it behind a reverse proxy with TLS and extra authentication, or make it reachable only over a VPN such as WireGuard. Never publish plain port 8384.

Step 5: Connect your laptop and phone

Install Syncthing on your other devices:

  • Windows, macOS, Linux: download it from syncthing.net . Many Linux distributions package it, and the project runs its own apt repository for current Debian and Ubuntu builds. On a desktop, the local GUI is at http://127.0.0.1:8384.
  • Android: the official Android app was discontinued at the end of 2024. Most people now use the community-maintained fork published on F-Droid and Google Play under the name Syncthing-Fork.
  • iOS: there is no official client. A paid third-party app, Mobius Sync, speaks the Syncthing protocol.

In the VPS GUI (through the tunnel), open Actions > Show ID. You get the device ID as text and as a QR code, handy for phones.

On your laptop’s GUI, click Add Remote Device, paste the VPS ID and name it VPS. In the Advanced tab, replace dynamic in the Addresses field with:

tcp://YOUR_VPS_IP:22000, dynamic

This tells the laptop exactly where the VPS is, so it does not have to wait for global discovery and connects faster. dynamic stays as a fallback. Click Save.

Within a minute, the VPS GUI shows a notification that a new device wants to connect. Before clicking Add Device, compare the ID with the one shown on your laptop under Actions > Show ID. Never accept a device you do not recognize. Name it laptop and save. After a few seconds, both sides show the other as Connected. Expand the device in the list: the address should be your IP over tcp or quic, not a relay.

Repeat for the phone, scanning the QR code from Actions > Show ID instead of typing the ID.

Step 6: Share folders with the VPS as the hub

The shape we want is a hub: every device shares its folders with the VPS, and the VPS shares them with everyone else. Start on the laptop and click Add Folder:

  • Folder Label: a friendly name, for example Documents.
  • Folder ID: Syncthing suggests a random one such as abcde-12345. Keep it; it must be identical on every device.
  • Folder Path: the local folder you want to sync.
  • In the Sharing tab, tick the VPS device, then click Save.

On the VPS GUI, a prompt appears saying the laptop wants to share Documents. Click Add and set the Folder Path to /var/syncthing/documents. This is the container path; on the host, the files land in /srv/syncthing/data/documents. Save, and the first sync begins. When it shows Up to Date, check from the VPS shell:

ls -la /srv/syncthing/data/documents

You should see your files plus a hidden .stfolder directory. That is Syncthing’s folder marker: never delete it.

Now bring the phone in. On the VPS GUI, open Documents > Edit > Sharing, tick the phone and save. The phone receives a prompt; accept it and pick a local path. The chain laptop, VPS, phone is complete, and the two ends no longer need to be online at the same time.

A few options worth knowing:

  • Folder type: Send & Receive (the default) is right for the VPS. On a phone, Send Only suits a camera folder you only want to push out.
  • Auto Accept (in the VPS’s device settings, Sharing tab): folders shared from that device are created automatically on the VPS, under the default path inside /var/syncthing. Convenient, but enable it only for your own devices.
  • Introducer: if you tick it for the VPS on your laptop, the laptop automatically learns about the other devices the VPS shares with, so laptop and phone can also sync directly when they are on the same Wi-Fi.

Step 7: Turn on file versioning

Synchronization faithfully copies your mistakes too. Delete a folder on the laptop by accident and, seconds later, it is gone from the phone and the VPS. File versioning keeps old copies when a file is replaced or deleted because of a change that came from another device. That detail matters: versioning on a device does not protect against edits made locally on that device. This is why the VPS is the perfect place for it. Nobody edits files on the VPS, every change arrives from somewhere else, so with versioning enabled there, every overwrite or delete from any device leaves a copy behind.

Syncthing offers four modes:

  • Trash Can: keeps the last replaced or deleted version, optionally cleaned after a number of days.
  • Simple: keeps a fixed number of versions per file (5 by default).
  • Staggered: thins out old versions over time: one per 30 seconds for the first hour, one per hour for the first day, one per day for the first 30 days, then one per week until the maximum age. The best general-purpose choice.
  • External: hands the file to your own script.

On the VPS GUI, open Documents > Edit > File Versioning, choose Staggered File Versioning and set Maximum Age to, say, 90 days (365 is the default; 0 keeps versions forever). Leave the versions path empty so Syncthing uses the .stversions directory inside the folder. Save.

Test it: delete a throwaway file on the laptop, wait a few seconds, then on the VPS:

ls -la /srv/syncthing/data/documents/.stversions/

You will find the file with a timestamp added to its name, such as report~20261110-143512.docx. To restore, click the Versions button that now appears in the folder panel of the VPS GUI, choose the file and the version you want, and restore it; the file syncs back to all devices. You can also copy a version out of .stversions manually and rename it. Keep an eye on the space it uses:

du -sh /srv/syncthing/data/documents/.stversions

Versioning is not a backup: the copies sit on the same disk of the same server. For data you cannot lose, also back up /srv/syncthing/data to a different location.

Step 8: Add ignore patterns

Some files should never sync: operating system metadata (.DS_Store, Thumbs.db), editor swap files, Office lock files, or huge folders you can regenerate, like node_modules. Syncthing reads a file called .stignore in the root of each shared folder. Every line is a pattern, and anything that matches is neither sent nor received.

The .stignore file itself is not synced, so each device has its own list. That is occasionally useful (a phone might skip a big video subfolder), but most of the time you want identical rules everywhere. The neat trick is to keep shared rules in a normal file called .stglobalignore, which does sync, and make every .stignore include it. On the VPS:

cat > /srv/syncthing/data/documents/.stglobalignore << 'EOF'
// Shared ignore rules, synced to every device
// OS metadata, safe to delete when its folder is removed
(?d).DS_Store
(?d)Thumbs.db
(?d)desktop.ini
// Temporary and lock files
*.tmp
*.swp
~$*
.~lock.*
// Large folders you can regenerate
node_modules
.cache
EOF
echo '#include .stglobalignore' > /srv/syncthing/data/documents/.stignore

Syncthing picks up the change on its next scan (or immediately if you click Rescan on the folder). Once .stglobalignore has arrived on your laptop and phone, open Edit > Ignore Patterns for the folder on each of them and add the single line #include .stglobalignore. Do it in this order: if the included file does not exist yet on a device, Syncthing may show an error for that folder until it arrives.

The syntax in short:

  • *.tmp matches any file ending in .tmp, in any subfolder.
  • /build with a leading slash matches only at the folder root.
  • node_modules without a slash matches that name at any depth.
  • ** matches across directory levels, for example logs/**/*.log.
  • !keep.tmp is an exception: do not ignore this. The first matching line wins, so exceptions go above the broader rules.
  • (?i) makes a pattern case-insensitive, and (?d) allows Syncthing to delete the ignored file when it is the only thing preventing a folder deletion.
  • Lines starting with // are comments.

Ignoring something does not delete copies that already synced. If you add node_modules after it was synced, remove the leftover copies on the other devices yourself.

How much RAM and disk a Syncthing server needs

Syncthing is light. Memory use depends mostly on how many files it tracks, not on their total size, because it keeps an index with metadata and block hashes for each file. The chart shows typical figures we see on small VPS instances; treat them as approximate.

Approximate Syncthing RAM use by number of files0200400600RAM in MB (approx.)~50 MB~80 MB~200 MB~600 MB1,00010,000100,000500,000Files across all synced foldersTypical steady use; full scans and the first sync temporarily use more.
Approximate memory use of a Syncthing node: a 1 GB VPS comfortably handles tens of thousands of files.

For most personal setups, a few thousand to a few tens of thousands of files, the smallest VPS is more than enough. CPU is used mainly during the first sync and full rescans, when Syncthing hashes file contents. Disk is the resource to plan: your data, plus versions, plus a small database in config. If you sync photo libraries with hundreds of thousands of files, go for 2 GB of RAM.

Keeping Syncthing updated and backed up

Syncthing’s built-in auto-upgrade is disabled in the Docker image, so updates are your job. They take ten seconds:

cd /srv/syncthing
sudo docker compose pull
sudo docker compose up -d
sudo docker image prune -f

pull fetches the newest 2.x image, up -d recreates the container only if the image changed, and prune removes the old, unused image. When a new major version appears, read the release notes, back up the config, and only then change the tag in compose.yaml on purpose.

Speaking of backups, the most precious files on the VPS are not your documents (those exist on your devices too) but the node’s identity: cert.pem, key.pem and config.xml in the config directory. Lose them and the VPS gets a new device ID, which means re-pairing every device. Archive them:

sudo tar czf ~/syncthing-config-$(date +%F).tar.gz -C /srv/syncthing/data config

Copy that archive off the server, together with any data you back up.

Troubleshooting and common mistakes

The GUI shows my laptop, not the VPS

You opened http://localhost:8384 while Syncthing runs on your laptop, so you are looking at the laptop’s own GUI. Use the tunnel with local port 9384 and open http://localhost:9384. The device name in the top left corner tells you where you are.

Devices stay “Disconnected” or connect through a relay

Check that the container listens with sudo ss -tulpn | grep 22000. From your laptop, test the port: on Linux or macOS run nc -vz YOUR_VPS_IP 22000 (you should see “succeeded” or “open”); on Windows PowerShell run Test-NetConnection YOUR_VPS_IP -Port 22000 and look for TcpTestSucceeded : True. If the test fails, check ufw and any firewall in your provider’s panel. Setting the explicit tcp:// address from Step 5 usually removes relay connections.

“Permission denied” or the folder will not start

The PUID/PGID values do not match the owner of the files. Compare id with ls -ln /srv/syncthing/data, fix the Compose file or run sudo chown -R 1000:1000 /srv/syncthing/data (with your numbers), then sudo docker compose up -d.

Files are not where I expected

In the VPS GUI you must use container paths (/var/syncthing/...). If you typed /srv/syncthing/data/documents there, Syncthing created that path inside the container, outside the mounted volume, and the data disappears when the container is recreated. Always use /var/syncthing/<name>.

“Folder marker missing”

The hidden .stfolder directory was deleted, or the folder path is empty because a disk is not mounted. Syncthing stops the folder on purpose, so it does not mistake an empty disk for “the user deleted everything”. If the data is really there, recreate the marker with mkdir /srv/syncthing/data/documents/.stfolder.

Changes are only detected once an hour

Syncthing watches folders with the Linux inotify system, which has a limit on watched directories. With large folders, raise it on the host:

sysctl fs.inotify.max_user_watches
echo "fs.inotify.max_user_watches=524288" | sudo tee /etc/sysctl.d/90-syncthing-inotify.conf
sudo sysctl --system

In an unprivileged LXC container you cannot change this value, because it belongs to the host kernel. Syncthing still works, it just relies more on its periodic full rescans; ask your provider if you need a higher limit.

Docker will not start on an LXC VPS

Docker inside LXC needs the container’s “nesting” feature enabled on the host. On a KVM VPS this is never an issue. If you are on LXC, ask support to enable it, or install Syncthing natively from the project’s apt repository and run it as a systemd service instead.

Files named “.sync-conflict-…”

When the same file is changed on two devices before they sync, Syncthing keeps both: the losing copy is renamed to something like notes.sync-conflict-20261110-143512-ABCDEFG.txt. Compare them, keep the right one and delete the other. Frequent conflicts usually mean an app keeps a file open on two devices at the same time.

Security notes

  • Keep the GUI off the internet. Bind it to 127.0.0.1, reach it through SSH, and set a strong GUI password anyway.
  • Docker bypasses ufw for published ports. Whatever you publish without 127.0.0.1: is public, regardless of ufw rules. Review the ports section whenever you edit the file.
  • Only accept devices you recognize. Device IDs are not secret, but a device can only sync after you accept it. Verify IDs and keep Auto Accept limited to your own devices.
  • Consider an untrusted (encrypted) VPS node. When sharing a folder with the VPS, you can set an encryption password for it on the laptop and accept it on the VPS as Receive Encrypted. The VPS then stores only encrypted data and names it cannot read, while still relaying changes between your devices. The tradeoff: you cannot browse or restore files on the VPS itself, and ignore patterns must be configured on the trusted devices. Test this mode with a small folder first.
  • Protect SSH. Use key-based login, disable password authentication, and keep the system updated, because SSH is now the door to your GUI.
  • Keep the image updated and keep an off-server copy of the config directory, which holds the node’s private key.
  • Sync traffic is already encrypted with TLS between devices, including through relays, so no extra VPN is needed for the data itself.

So, is a Syncthing VPS worth it?

If you want Dropbox-style convenience without handing your files to a third party, Syncthing plus an always-on VPS is one of the simplest self-hosted setups you can build. Your laptop and phone stop depending on being online at the same time, you get an extra copy in a data center, and versioning on the VPS quietly protects you from accidental deletes. The whole stack is one container, one directory and two open ports.

You can run it on the smallest VPS we offer, hosted in our own data center in Romania, and have your devices in sync within the hour. If you would rather not manage Docker, firewalls and backups yourself, our server administration team can set up and maintain the whole thing for you.

FAQ

Is Syncthing a replacement for backups?

No. Syncthing copies changes, including mistakes and, in the worst case, files encrypted by ransomware. Versioning on the VPS softens this a lot, but versions live on the same server. Keep at least one real backup, on another machine, of the data you care about.

Can the VPS store my files without being able to read them?

Yes, with the Receive Encrypted folder type described in the security notes. Every trusted device that shares the folder with the VPS must use the same encryption password, and you lose the ability to work with plain files on the VPS.

Do I need Docker, or can I install Syncthing directly?

Docker is optional. The project publishes an official apt repository for Debian and Ubuntu, and you can run Syncthing as a systemd service under a dedicated user. Docker simply makes version pinning, upgrades and backups tidier, and it is what this guide assumes.

How many devices and folders can one VPS handle?

Many more than a household needs. Dozens of devices and folders are fine; the practical limits are the total number of files (see the RAM chart) and disk space for data plus versions.

Does it work on an LXC VPS?

Yes, with two caveats: Docker requires nesting to be enabled on the host, and the inotify watch limit cannot be raised from inside an unprivileged container. A KVM VPS avoids both issues.

Trusted By & Member Of

We are proud members of leading internet infrastructure organizations.

RIPE NCC MANRS PeeringDB RoTLD DSIX SBIX 4IXP LOCIX Euro-IX RIPE NCC MANRS PeeringDB RoTLD DSIX SBIX 4IXP LOCIX Euro-IX