DSync is a dead-simple P2P file synchronization tool using the SSH protocol.
The algorithm used to determine the correct version to use simply looks at the mtime (last modified time) of a file on all ends, and the one with the latest gets synchronized to the rest.
To build, simply run:
go build ./cmd/dsync
To run, execute the resulting file, or the following command directly:
go run ./cmd/dsync