Install Syncthing
dnf install syncthing
Check the syncthing version.
syncthing --version
syncthing v1.10.0 "Fermium Flea" (go1.14.9 linux-amd64) mockbuild@fedora-koji 2020-10-09 00:00:00 UTC
Configure syncthing to start automatically at boot
We will use Linux Systemd to manage the Syncthing service-enabling users to start, stop, enable and disable service units.
Enable and start the service.
Modify the listening address, and the management page can be accessed from outside
vi /usr/lib/systemd/user/syncthing.service
vi /usr/lib/systemd/system/[email protected]
添加 -gui-address="0.0.0.0:8384"
After adding as follows
ExecStart=/usr/local/bin/syncthing -no-browser -gui-address="0.0.0.0:8384" -no-restart -logflags=0
# systemctl daemon-reload
# systemctl start syncthing@$USER
# systemctl enable syncthing@$USER
Confirm the service status.
# systemctl status syncthing@$USER
● [email protected] - Syncthing - Open Source Continuous File Synchronization for cloud/user
Loaded: loaded (/etc/systemd/system/[email protected]; disabled; vendor preset: disabled)
Active: active (running) since Sun 2020-03-08 21:19:04 EAT; 1min 7s ago
Docs: man:syncthing(1)
Main PID: 7739 (syncthing)
Tasks: 9 (limit: 11512)
Memory: 29.1M
CGroup: /system.slice/system-syncthing.slice/[email protected]
└─7739 /usr/local/bin/syncthing -no-browser -no-restart -logflags=0
Mar 08 21:19:05 cent8.novalocal syncthing[7739]: [BAMMV] INFO: Loading HTTPS certificate: open /home/cloud-user/.config/syncthing/https-cert.pem: no su>
Mar 08 21:19:05 cent8.novalocal syncthing[7739]: [BAMMV] INFO: Creating new HTTPS certificate
Mar 08 21:19:05 cent8.novalocal syncthing[7739]: [BAMMV] INFO: TCP listener ([::]:22000) starting
Mar 08 21:19:05 cent8.novalocal syncthing[7739]: [BAMMV] INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) starting
Mar 08 21:19:05 cent8.novalocal syncthing[7739]: [BAMMV] INFO: GUI and API listening on 127.0.0.1:8384
Mar 08 21:19:05 cent8.novalocal syncthing[7739]: [BAMMV] INFO: Access the GUI via the following URL: http://127.0.0.1:8384/
Mar 08 21:19:05 cent8.novalocal syncthing[7739]: [BAMMV] INFO: My name is "cent8.novalocal"
Mar 08 21:19:05 cent8.novalocal syncthing[7739]: [BAMMV] INFO: Completed initial scan of sendreceive folder "Default Folder" (default)
Mar 08 21:19:20 cent8.novalocal syncthing[7739]: [BAMMV] INFO: Detected 1 NAT service
Mar 08 21:19:36 cent8.novalocal syncthing[7739]: [BAMMV] INFO: Joined relay relay://85.10.202.70:22067
You can also use a separate user account to start the service by replacing $USER with the user name.
Access the synchronization interface
The Syncthing management GUI is automatically started by systemd, with a configurable listening address, port 8384. If -gui-address="ip:port" is not provided, the service will run https://localhost:8384/
ss -tunelp | grep 8384
tcp LISTEN 0 4096 127.0.0.1:8384 0.0.0.0:* users:(("syncthing",pid=5212,fd=32)) ino:71544 sk:f <->
By default, the Syncthing management interface is configured to allow remote access without a password.
Open the settings to set a password: Settings> GUI
You will then be prompted for authentication.
Use Syncthing to synchronize data between two devices
To enable you to use Syncthing to synchronize data between two or more computers, please ensure that Syncthing is installed and configured on all systems. After the setup is complete, each device must be informed of other devices.
Sync device ID
This can be achieved by exchanging "device ID". The device ID is a unique encrypted security identifier that is generated as part of the key generation when you start Syncthing for the first time. If two devices are configured with each other's device ID, they will only connect to each other and talk. Get the device ID from Operation> Display ID
Add sync device ID
To make two devices communicate with each other, click "Add Remote Device" in the lower right corner of the two devices, and then enter the device ID of the other side.
In addition, select the folder to be shared. The device name is optional and purely decorative. If necessary, you can change it later. After clicking "Save", the new device will appear on the right side of the GUI (albeit disconnected) and a prompt will be displayed to indicate that a restart is required.
Note: The default folder to be shared is ~Sync. After making changes such as adding a Sync directory, make sure to restart Syncthing on "Actions"> "Restart".
Set to disable local discovery, disable others
Good luck and have fun!