Skip to content

Syncthing

Default URL: http://localhost:8384/

Syncthing is a continuous file synchronization program. It synchronizes files between two or more computers in real time, safely protected from prying eyes. Your data is your data alone and you deserve to choose where it is stored, whether it is shared with some third party, and how it's transmitted over the internet.

Ideas

firewalld

sudo firewall-cmd --zone=dmz --add-service=syncthing --permanent
sudo firewall-cmd --zone=dmz --add-service=syncthing-gui --permanent
sudo firewall-cmd --reload

Install

fedora: sudo dnf install -y syncthing

ubuntu:

sudo curl -o /usr/share/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg
echo "deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
sudo apt-get update
sudo apt-get install syncthing

Config

Start on boot (gnome):

web ui

  • https://docs.syncthing.net/users/guilisten.html

~/.config/syncthing/config.xml

<gui enabled="true" tls="false" debugging="false">
    <address>127.0.0.1:8384</address>
    <apikey>dfjsfdkjhsdfa;hdsfo</apikey>
    <theme>default</theme>
</gui>

Be sure to enable HTTPS and set a strong password. tailsscale setting gui

Systemd start

$ sudo systemctl enable --now syncthing@m.service
Created symlink /etc/systemd/system/multi-user.target.wants/syncthing@mike.service → /lib/systemd/system/syncthing@.service.

Reset GUI password

If you’ve forgotten / lost the GUI password, you can reset it using the --gui-password (and possibly --gui-user) options to the syncthing generate subcommand. This should be done while Syncthing is not running.

syncthing cli operations shutdown # Stop Syncthing
syncthing generate --gui-password=myNewPassword --gui-user=newUserName
# Restart Syncthing as usual.

Ignore Files with .stignore