
Your partner sends two files named report.csv, one from each regional office, followed by an empty complete.flag. Their scheduled job speaks SFTP. Your import job reads from an S3 bucket. The handoff works if the partner can keep the same directory layout and your importer can identify all three files by their full object keys.
We tested that handoff with SFTPGo 2.7.6, an OpenSSH SFTP client and a local S3-compatible test service. Three uploaded files produced five keys under the partner’s prefix. Two were directory markers. Discarding every zero-byte object would also discard the completion flag and leave the importer waiting for a delivery it already had.
SFTPGo sits between the two protocols. The partner authenticates to the gateway with an SSH key and sees a directory tree. The gateway authenticates separately to the storage endpoint and translates file operations into object operations. The partner needs the gateway address, account name and verified SSH host key. The storage credentials belong on the gateway. Our introduction to SFTP explains the client connection in more detail.
Our test bucket was partner-deliveries. The account partner saw / as its working directory, which mapped to incoming/acme/. From the client, north/report.csv therefore became the object key incoming/acme/north/report.csv. A note we placed at the bucket root did not appear in the account’s directory listing.
These are the relevant arguments from our SFTPGo 2.7.6 portable-mode configuration. They are an excerpt. The working setup also supplied a listener address and port, an SSH host key, the partner’s public key, an S3 endpoint and credentials.
--fs-provider s3fs
--s3-bucket partner-deliveries
--s3-region us-east-1
--s3-key-prefix incoming/acme/
--permissions list,upload,create_dirs
For the local run, we used Moto 5.2.6 on the loopback interface, a local HTTP endpoint and path-style bucket addressing. For a hosted bucket, take the HTTPS endpoint, region and addressing mode from your provider. Scope the gateway’s storage permissions to its intended work. The SFTP account’s prefix controls what it sees through the gateway; the storage credentials have their own permissions. See the SFTPGo S3 backend documentation for these settings.
Start with a fresh delivery prefix. In the sender’s working directory, create north/report.csv and south/report.csv with different contents. Add an empty file named complete.flag. We used two 23-byte reports so a size check alone could never tell the regional files apart.
Register the sender’s public key on the gateway and give the sender the verified host-key fingerprint through a trusted channel. In our test, the client’s known_hosts file was built from the gateway’s known public host key and the client required a strict match. With that connection configured, the following OpenSSH batch creates the two directories and uploads the flag last.
pwd
mkdir north
mkdir south
put north/report.csv north/report.csv
put south/report.csv south/report.csv
put complete.flag complete.flag
ls -1
bye
The listing showed complete.flag, north and south. The sender’s batch had finished, but the importer still needed to establish what arrived. Agree on a new prefix or delivery ID for each recurring batch. An old flag in a reused prefix could otherwise trigger a new import before the new reports have arrived.
Using a separate S3 client, we listed the bucket with the prefix incoming/acme/. This was the complete result.
incoming/acme/complete.flag
incoming/acme/north/
incoming/acme/north/report.csv
incoming/acme/south/
incoming/acme/south/report.csv
S3 uses a flat key namespace. Slashes form part of the key, and clients can interpret shared prefixes as directories. In this test, the SFTP mkdir operations produced the two trailing-slash keys. The completion flag had zero bytes too, but its key was on the agreed delivery manifest. Keep the distinction explicit in the importer. Amazon’s object key documentation explains how folder objects and prefixes work.
For this delivery, the receiver compared the three expected file keys with the actual keys after setting aside the two directory markers. It then read each object through the S3 API and calculated SHA-256 over the returned bytes. The northern and southern reports matched their respective sources and had different digests. The empty flag matched the SHA-256 digest for an empty file. All three comparisons passed on a second run in a fresh bucket.
Treat the flag as a signal to check the delivery. Require the expected keys and, when the sender supplies them, compare the per-file hashes. If a report is missing or its hash differs, keep the delivery pending and give the sender the precise relative path to resend. This prevents a valid northern report from standing in for an absent southern one.
Use files representative of your real workload before choosing a gateway host or storage provider. Our local run verified path mapping, host-key matching and file contents. It did not measure remote throughput, test a Hivenet bucket or exercise large multipart transfers. To evaluate Object Storage with Hivenet, repeat the three-file receipt check against a designated test bucket, then time a normal partner batch. If you are also choosing where to run the gateway, a CPU instance with Hivenet is a separate hosting decision.
Pick one AI, compute, or storage workload and see the difference for yourself. Spin it up in minutes, or let our team map your fastest path to production.