Syncthing

Two random port numbers between 10000 and 65535 are needed for Syncthing to operate properly. The port numbers 18112 and 36823 have automatically been generated and will be used throughout this article, but can be changed if needed.

Open ~/.config/syncthing/config.xml for editing (nano ~/.config/syncthing/config.xml)

Change the IP and port used by the web interface by editing the following lines. 0.0.0.0 is used to allow you to connect to it from the Internet instead of requiring an SSH tunnel.

<gui enabled="true" tls="false">
<address>0.0.0.0:18112</address>

Change the port used by Syncthing's listen address by editing the following lines.

<options>
<listenAddress>0.0.0.0:36823</listenAddress>

Run Syncthing in a screen session. Once Syncthing is running, you may close the SSH session or press Ctrl+A, D to detach from screen, allowing Syncthing to run in the background.

screen -S syncthing ~/syncthing/syncthing

Navigate to the WebUI by entering http://server.whatbox.ca:18112 into your browser. At the top-right of the page, select Actions followed by Settings. In the settings panel, change your GUI Authentication Username and GUI Authentication Password to a username and password of your choosing.