syncthing.sh 1.3 KB

1234567891011121314151617181920212223
  1. # https://apt.syncthing.net/
  2. sudo mkdir -p /etc/apt/keyrings
  3. sudo curl -L -o /etc/apt/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg
  4. echo "deb [signed-by=/etc/apt/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
  5. sudo apt-get update && sudo apt-get install syncthing
  6. # Infos
  7. # - Crypto https://docs.syncthing.net/dev/device-ids.html
  8. # - At first startup, Syncthing will create a self-signed public/private keypair
  9. # - 384 bit ECDSA key (3072 bit RSA prior to v0.12.5)
  10. # - First read: https://docs.syncthing.net/intro/getting-started.html
  11. # - Device ID
  12. # - device ID = SHA-256 hash of the certificate data
  13. # - cryptographically-secure identifier generated as part of the key generation
  14. # - They are essentially part of the public key.
  15. # - To get your two devices to talk to each other click “Add Remote Device” at the bottom right on both devices, and enter the device ID
  16. # - The device ID, derived from the SHA-256 hash of the device’s certificate, is used to verify the identity of the connecting device. This ensures that only authorized devices can connect and sync1.
  17. # - Local device resolution
  18. # - broadcast to announce
  19. # - udp
  20. # - every 30-60s