SFTPGo on S3: partner file exchange that scales, with rights per user and folder
Many partners still exchange files over SFTP. What SFTPGo brings, which storage it can use, why S3 is usually the best fit, and how precisely it controls who can do what.
Key takeaways
- SFTPGo is an open-source SFTP, FTP/S, WebDAV and HTTPS server with pluggable storage: local disk, S3 and S3-compatible storage, Google Cloud Storage, Azure Blob or another SFTP server.
- On S3 the servers hold no files themselves, so they scale out, upgrade and fail over without moving any data.
- Access control goes deep: permissions per user and per folder, groups, quotas, file filters, IP and protocol limits, two-factor login and scoped admin roles.
- Everything can be automated through a REST API and an event manager that reacts to uploads, downloads and logins.
APIs and event streams get the spotlight, but plenty of business data still travels as files. Partners and customers send orders, price lists, invoices and reports over SFTP, and many integrations will keep doing so for years. The traditional setup, an SFTP daemon writing to local disk with a system account per partner, is hard to scale, hard to audit and hard to give the right permissions.
SFTPGo is a modern, open-source answer. Below: what it offers, which storage it supports, why S3 is usually the best choice, and how far its user and permission management reaches.
What SFTPGo is
SFTPGo is a complete file transfer server written in Go. It does not depend on operating system accounts: users, keys and settings are kept in its own data provider, and files are stored wherever you point it.
- Several protocols in one server: SFTP, SCP, FTP/S, WebDAV and HTTPS, plus a web client for people without a transfer tool.
- Users and settings in a database such as PostgreSQL, MySQL or SQLite, so multiple instances share one configuration.
- A REST API and web admin for users, groups, keys and permissions, instead of hand-edited config files.
- An event manager that responds to uploads, downloads, logins and schedules with notifications, HTTP calls, scripts or file actions.
- Prometheus metrics, structured logs and an audit trail of every login and transfer.
Where files can live
Storage is chosen per user and even per folder, and clients never notice the difference. Supported backends:
- Local filesystem, optionally encrypted at rest by SFTPGo itself.
- Amazon S3 and S3-compatible storage like MinIO, Ceph or most cloud providers’ object storage.
- Google Cloud Storage and Azure Blob Storage.
- Another SFTP server, making SFTPGo a controlled entry point to an existing system.
- HTTP, for your own storage service behind a simple API.
Backends can be combined: one user’s home can sit in S3 while a shared folder inside it points to another bucket or a local disk.
Why S3 is usually the best fit
We have delivered several projects with SFTPGo on S3-compatible storage, and it is the setup we normally recommend. The reason is straightforward: no file ever touches the server’s own disk. Uploads stream directly into object storage, which makes the servers stateless:
- Run several instances, for instance on Kubernetes, behind a TCP load balancer, and scale them up or down with the load.
- Ship a new version or replace a broken node without moving a single file.
- Storage capacity and throughput grow independently of the servers.
- Lifecycle rules expire or archive old files automatically, and bucket versioning guards against accidental deletes.
- A file appears in the bucket only once its upload has finished, so downstream systems never pick up half a file.
A few details make the difference: use the same SSH host keys on every instance so clients never see a changed key; turn on the PROXY protocol so SFTPGo sees each client’s real IP; tune multipart part size and concurrency to your usual file sizes; and limit the storage credentials to the buckets and prefixes the server actually needs.
Precise control over users and rights
This is where SFTPGo leaves a plain SFTP daemon behind. Each user is configured on their own, and nearly every setting can be inherited from groups.
Permissions per user and per folder
Rights are granted per directory, not per account: list, download, upload, overwrite, delete, rename, create directories and more, each separately. A partner can upload to /in without deleting there, download from /out without writing, and see nothing else.
Virtual folders and groups
Virtual folders map a path in a user’s tree to any storage location, so several users can share one folder, each with their own rights. Groups hold shared settings such as storage, folders, permissions and limits, so a hundred partner accounts are run as one template, with only the exceptions set per user.
Limits and filters
- Quotas on total size and file count, per user or per folder.
- Bandwidth and transfer limits, plus a cap on parallel sessions.
- File filters that allow or block name patterns per directory, for example only
*.csvand*.xmlin an upload folder. - An expiry date for temporary accounts.
How and from where users sign in
- Allowed and blocked IP ranges per user.
- Allowed protocols per user, for example SFTP only, with no FTP or web access.
- Allowed login methods: public keys only, password, or both, plus two-factor authentication with one-time codes.
- Single sign-on via OpenID Connect for the web interfaces, and an external authentication hook to check users against your own system.
Scoped administrators
Administrators have their own permissions, and roles restrict an admin to a subset of users. A team can manage its own partners without seeing or touching anyone else’s, and every change lands in the audit log.
Automation and routing
Receiving a file is usually only half the work. When an upload completes, the event manager can copy, move or delete files, call a webhook or run a command, so simple routing needs no additional service. For more complex rules, a webhook passes the event to a routing service that picks the destination, copies the file within the storage without downloading it, and notifies the consumer through a queue.
Events can arrive twice, and so can files. Identify every file by path and checksum, and make each step safe to repeat.
Security basics
- Keys instead of passwords for machine accounts, and the built-in brute-force protection switched on for everyone else.
- One home per partner, with rights per folder rather than per account.
- Least-privilege storage credentials, plus encryption in transit and at rest.
- Network policies so the transfer servers can reach their database and storage and nothing else.
- Metrics and alerts for failed logins, errors and files that arrive but never get processed.
Checklist for SFTPGo on S3
- Stateless instances, a shared database and S3-compatible storage behind them.
- Identical host keys on every instance, PROXY protocol for real client IPs.
- Groups as templates, rights per folder, quotas and file filters.
- IP, protocol and login-method limits per user, two-factor wherever people sign in.
- Scoped admin roles and an audit trail.
- Event-driven, idempotent routing and lifecycle rules for retention.
FAQ
Which storage backends does SFTPGo support?
Local filesystem (optionally encrypted), Amazon S3 and S3-compatible storage like MinIO or Ceph, Google Cloud Storage, Azure Blob Storage, another SFTP server and an HTTP backend. Backends can be chosen per user and per folder.
Can SFTPGo store files directly in S3?
Yes. Uploads stream straight into the bucket, invisibly to SFTP, FTP/S, WebDAV and HTTPS clients, so the servers hold no files and can scale out freely.
How fine-grained are SFTPGo permissions?
Permissions are set per directory (list, download, upload, overwrite, delete, rename and more) and combined with groups, virtual folders, quotas, file name filters, IP, protocol and login-method limits, two-factor authentication and admin roles.
Is SFTPGo free?
SFTPGo is open source, so you can run it on your own infrastructure with no licence fees.
Replacing an old SFTP server, or planning partner file exchange on object storage? We would like to hear how you handle users and rights.
