Automatically approve remote device connections

I want to allow other devices to connect to mine automatically without my device needing to click ‘Agree’ for the connection. How can I achieve this?

Have you seen Introducer Configuration — Syncthing documentation ?

I am confused after reading the documentation. Is there a way to achieve device association without clicking ‘Agree’ on the web page?

For Syncthing to work, you’ll have to do that at least once, unless you’re willing to work in the underlying files to add the TLS key and configuration manually.

If you do that the first time and the peer Device is an Introducer (as described in the documentation link), you can sync Folders with any Device that your Introducer presents.

What is the use case you’re envisioning? There are two I thought of just now:

  • You’d like to use Syncthing to send files to strangers, on demand. My opinion is that you want a web server for that, as Syncthing isn’t a good fit for that use case.
  • You’d like to use Syncthing for what it’s good at (not serving files, not backing files up, but keeping files synchronized) at a very large scale. This would be a great use case for the Introducer feature — my initial thoughts would add the necessary TLS certs and Syncthing configuration to a gold image, configuring several Introducers (for redundancy) to automate each new Syncthing Device.

My requirement is to allow device X to associate with my device by providing them with my device ID, and X should be able to connect through their Syncthing without me having to click ‘Agree’ on my Syncthing interface. Similarly, device Y should be able to input my device ID on their web interface and connect without me needing to click ‘Agree’, with the connection automatically accepted. Can this be achieved through Syncthing settings, or should I write a script to fulfill this requirement? Could you please explain how to do this specifically?

You could use this separate daemon to control automatic acceptance of devices and folders:

I really appreciate it