syncthing setup exclusively with CLI
source link: https://gist.github.com/Jonny-exe/9bad76c3adc6e916434005755ea70389
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
syncthing setup exclusively with CLI · GitHub
Instantly share code, notes, and snippets.
After long searching I did not find a good description of how to set up Syncthing that works exclusively via CLI without using a Web browser on the devices.
This is useful for example on a headless Raspberry Pi without proxying web-traffic through SSH or with port-forwarding limitations. In this example we will want to share the default folder from Machine A with Machine B
Machine A | Machine B |
---|---|
Install Syncthing On debian: On fedora: Generate device ID and config files and default folder
Start Syncthing
Get the device id
|
Install Syncthing On debian: On fedora: Generate device ID and config files and default folder
Start Syncthing
Get the device id
|
Add Machine B
|
Add Machine A
|
Share default folder with Machine B
Insert the id from the folder you want to share into $FOLDER_ID |
|
Accept default folder from Machine A
If you don't want Machine B automatically accepting all of Machine A's folder requests, just run this command again with |
Additional useful info can be found at: https://superuser.com/questions/1397683/how-can-i-configure-syncthing-from-command-line-to-share-a-folder-with-another-c/1731999#1731999?s=0744928a5f9d4717b7445d039785ba53.
Don't waste your time with this repo, as it hasn't been updated since 2014, it is not working: https://github.com/classicsc/syncthingmanager
This repo https://github.com/tenox7/stc is useful but it doesn't not offer adding devices/folders.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK