{"id":1892,"date":"2025-07-23T09:18:09","date_gmt":"2025-07-23T16:18:09","guid":{"rendered":"https:\/\/surfrock66.com\/?p=1892"},"modified":"2025-07-23T09:18:09","modified_gmt":"2025-07-23T16:18:09","slug":"my-attempt-at-cli-based-onboarding-of-new-syncthing-clients-with-auto-accepting-of-folders","status":"publish","type":"post","link":"https:\/\/surfrock66.com\/?p=1892","title":{"rendered":"My attempt at CLI-Based onboarding of new syncthing clients, with auto-accepting of folders."},"content":{"rendered":"<p>This was originally posted here, but I&#8217;m keeping a local copy for self-reliance and preservation: <a href=\"https:\/\/forum.syncthing.net\/t\/my-attempt-at-cli-based-onboarding-of-new-clients-with-auto-accepting-of-folders\/24632\/1\" title=\"https:\/\/forum.syncthing.net\/t\/my-attempt-at-cli-based-onboarding-of-new-clients-with-auto-accepting-of-folders\/24632\/1\">https:\/\/forum.syncthing.net\/t\/my-attempt-at-cli-based-onboarding-of-new-clients-with-auto-accepting-of-folders\/24632\/1<\/a><\/p>\n<p>I know this has been done a million times, but I got it working for 2 test clients and I wanted to share as it has taken me some effort to get this all in 1 place. Maybe this isn\u2019t that applicable, but for me it is. My environment has the following:<\/p>\n<ol>\n<li>About 30 linux VM\u2019s and clients<\/li>\n<li>One \u201cPrimary\u201d syncthing device, which is my introducer. We need that device\u2019s ID, and the ability to ssh into it.\n<ol>\n<li>Device ID stylized as AAAAAAA-BBBBBBB-CCCCCCC-DDDDDDD-EEEEEEE-FFFFFFF-GGGGGGG-HHHHHHH, make sure to replace<\/li>\n<li>Introducer hostname stylized by INTRODUCER-HOSTNAME, make sure to replace<\/li>\n<li>If you use an alt port, change it from 22<\/li>\n<\/ol><\/li>\n<li>Optionally, a list of shares we want everyone in the group to have; you can also enumerate them for automatic adding, my examples are below:\n<ol>\n<li>~\/.dotfiles called .dotfiles<\/li>\n<li>~\/.scripts called .scripts<\/li>\n<\/ol><\/li>\n<\/ol>","protected":false},"excerpt":{"rendered":"<p>This was originally posted here, but I&#8217;m keeping a local copy for self-reliance and preservation: <a href=\"https:\/\/forum.syncthing.net\/t\/my-attempt-at-cli-based-onboarding-of-new-clients-with-auto-accepting-of-folders\/24632\/1\">https:\/\/forum.syncthing.net\/t\/my-attempt-at-cli-based-onboarding-of-new-clients-with-auto-accepting-of-folders\/24632\/1<\/a> I know this has been done a million times, but I got it working for 2 test clients and I wanted to share as it has taken me some effort to get this all in 1 place. Maybe this [&hellip;]<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,3,7],"tags":[],"class_list":["post-1892","post","type-post","status-publish","format-standard","hentry","category-geek","category-projects","category-random"],"_links":{"self":[{"href":"https:\/\/surfrock66.com\/index.php?rest_route=\/wp\/v2\/posts\/1892","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/surfrock66.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/surfrock66.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/surfrock66.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/surfrock66.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1892"}],"version-history":[{"count":3,"href":"https:\/\/surfrock66.com\/index.php?rest_route=\/wp\/v2\/posts\/1892\/revisions"}],"predecessor-version":[{"id":1895,"href":"https:\/\/surfrock66.com\/index.php?rest_route=\/wp\/v2\/posts\/1892\/revisions\/1895"}],"wp:attachment":[{"href":"https:\/\/surfrock66.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/surfrock66.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/surfrock66.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}