A small FTP and FTPS server that does not get in your way.
uFTP is an open source FTP server written in C for Linux and POSIX systems. One binary, one configuration file, TLS included, MIT license.
What you get
Everything a file transfer server needs, and nothing that makes it hard to run.
FTP and FTPS
Explicit TLS (AUTH TLS) for the control and data connections, passive and active mode, IPv4 and IPv6.
One binary, one file
Copy the program and uftpd.cfg, edit the file, run it.
Works with your clients
Tested with FileZilla, lftp and Python's ftplib. Directory listings with MLSD.
Safer by default
Hashed passwords, per-address and per-account limits, login lock-out, a ready fail2ban filter, and a SECURITY.md to report problems in private.
Many connections
One process with a few threads, not one process per client. A slot costs a few kilobytes of memory.
Tested
An automatic suite of about 1,100 tests, fuzzing, and builds with AddressSanitizer and ThreadSanitizer.
Performance
Measured numbers, with the conditions they were measured in.
sendfile(), 0.08 s of CPU per GBMeasured on a 12-core machine with the clients and the server on the same host, so a real network will give different results. The method and the full results are in the repository (test/benchmark).
Install from the APT or DNF repository
Signed repositories for Debian 12/13, Ubuntu 22.04/24.04, Rocky Linux and EL 9/10, on amd64, arm64, armhf, x86_64 and aarch64. Add the repository and install uFTP with the package manager. The packages install the systemd service, a self-signed certificate and a sample configuration; add an FTP user before starting the service.
Guides
Step by step, for the things people ask most.
Install an FTP server on Linux
Build uFTP, create a user and connect with FileZilla in five minutes.
FTPS with a certificate
Self-signed or Let's Encrypt certificates, certificate chains, and how to renew them.
FTP server on a Raspberry Pi
A light server for a small board, started at boot.
FTP behind a NAT or firewall
Passive ports, the public address and FTPS.
Run an FTP server without root
For embedded devices and tight permissions.
Troubleshooting
Connection, passive mode, certificate and error code problems.
Questions
Is uFTP free?
Yes. It is open source under the MIT license: free for personal and commercial use.
Does uFTP support FTPS?
Yes: explicit FTPS (AUTH TLS) with TLS 1.2 and 1.3, on the control and the data connections. Implicit FTPS on port 990 is not supported.
Does it run on a Raspberry Pi?
Yes. It is written in C, builds on the board in seconds and needs only OpenSSL for TLS.
How do I use a Let's Encrypt certificate?
Point CERTIFICATE_PATH to fullchain.pem and PRIVATE_CERTIFICATE_PATH to privkey.pem, and restart uFTP after every renewal. Details.
Open source
The MIT license lets you use uFTP and reuse its code, even in commercial products. Bug reports, ideas and pull requests are welcome on GitHub. To report a security problem in private, read SECURITY.md.