You are here

Setting up Syncthing on an Ubuntu 16.04 server


Install package from PPA (from

# Add the release PGP keys:
curl -s | sudo apt-key add -

# Add the "release" channel to your APT sources:
echo "deb syncthing release" | sudo tee /etc/apt/sources.list.d/syncthing.list

# Update and install syncthing:
sudo apt-get update
sudo apt-get install syncthing

Setup Syncthing (from digitalocean guide)

  • Run syncthing and note the device key
  • Ctrl-C to abort it
  • vi ~/.config/syncthing/config.xml
    • change <address></address> to <address></address>

Enable and start with systemd

USER=root #or whatever
sudo systemctl enable syncthing@$USER.service
sudo systemctl start syncthing@$USER.service
  • Immediately go to https:url:8080 and set up GUI Authentication User and Password
  • to use ssh tunnel:
ssh -N -L 8385:localhost:8384 root@server

Other operating systems

Enable and start with older init-based systems

runlevel #find runlevel
ln -sfn /opt/bin/syncthing /etc/rc5.d/S65syncthing /opt/bin/syncthing #for runlevel 5
/opt/bin/syncthing --no-browser

More advanced scripts can be found here:…nit-d/402