FTPS, or FTP Secure, is the classic File Transfer Protocol extended with Transport Layer Security (TLS), so that credentials, commands and file contents travel encrypted between client and server. Among the Internet protocols used for moving files, it keeps the familiar FTP command set and two-connection architecture while adding certificate-based server authentication and optional client certificates.
FTPS is defined mainly by RFC 4217, which describes how FTP sessions are secured with TLS. It should not be confused with SFTP, a completely different protocol that runs over SSH. FTPS remains common in business-to-business file exchange, banking, retail supply chains and legacy integrations where FTP workflows already exist.
How FTPS secures the FTP session
FTPS secures FTP by wrapping its control connection and, optionally, each data connection in a TLS session. The control connection carries commands such as USER, PASS, LIST and RETR, while separate data connections carry directory listings and file contents.
In the usual explicit mode, the client connects to port 21 in plaintext and sends AUTH TLS. After the server replies with code 234, both sides perform a TLS handshake, and the server presents an X.509 certificate that the client validates against trusted certificate authorities. Only then does the client send its username and password, now protected.
Data channel protection is negotiated separately. The client sends PBSZ 0 (a required formality for TLS) and then PROT P to request a private, encrypted data channel, or PROT C to leave data in clear text. Each data connection then performs its own TLS handshake, ideally resuming the control session so the server can confirm that the same client opened both connections.
The following table summarizes the commands that distinguish an FTPS session from a plain FTP session.
| Command | Purpose | Typical server reply |
|---|---|---|
| AUTH TLS | Upgrade the control connection to TLS | 234 Proceed with negotiation |
| PBSZ 0 | Set protection buffer size, always zero for TLS | 200 PBSZ set to 0 |
| PROT P | Encrypt the data channel | 200 Protection level set to Private |
| PROT C | Leave the data channel unencrypted | 200 Protection level set to Clear |
| CCC | Clear the control channel after login | 200 or 534 if refused |
Explicit and implicit FTPS modes
FTPS exists in two connection modes that differ in when encryption begins. Explicit FTPS, sometimes called FTPES, upgrades an ordinary connection on request, while implicit FTPS starts TLS immediately on a dedicated port, without any plaintext exchange.
Implicit FTPS on port 990 predates the standard and was never formally specified in RFC 4217, so it is considered deprecated but still widely supported. Explicit mode is the standardized and recommended choice, although some older appliances and partner systems still require implicit connections.
| Property | Explicit FTPS | Implicit FTPS |
|---|---|---|
| Control port | 21 (shared with plain FTP) | 990 |
| Start of encryption | After the AUTH TLS command | Immediately on connect |
| Standard status | Defined in RFC 4217 | Legacy convention, deprecated |
| Server flexibility | Can require or allow TLS | TLS always required |
| Downgrade risk | Present if TLS is optional | None at connection start |
A server running explicit mode should be configured to require TLS before login. If TLS is merely allowed, a misconfigured client may silently fall back to sending the password in plaintext, which defeats the purpose of FTPS.
FTPS compared with FTP, SFTP and HTTPS
FTPS sits between plain FTP and the newer file transfer options in terms of security and operational complexity. Choosing among them depends mostly on firewall policy, partner requirements and existing tooling rather than on raw cryptographic strength, because modern TLS and SSH offer comparable protection.
| Protocol | Security layer | Ports | Firewall friendliness |
|---|---|---|---|
| FTP | None | 21 plus dynamic data ports | Poor, needs inspection helpers |
| FTPS | TLS with X.509 certificates | 21 or 990 plus dynamic data ports | Poor, helpers cannot read encrypted commands |
| SFTP | SSH with host keys | 22 only | Good, single connection |
| HTTPS | TLS with X.509 certificates | 443 only | Excellent |
The key difference from SFTP is architectural: SFTP multiplexes everything over one SSH connection, whereas FTPS inherits FTP’s separate data connections. The key advantage of FTPS is certificate-based trust, which fits organizations that already manage a public key infrastructure for web and email servers.
Firewalls, NAT and passive mode
FTPS is notoriously difficult to run through firewalls and NAT devices because the data channel ports are negotiated inside the encrypted control channel. In plain FTP, a firewall application-layer gateway reads the PASV or PORT reply and opens the matching port automatically; with FTPS, that inspection becomes impossible.
The standard workaround is passive mode with a fixed port range, for example 50000 to 50100, opened on the server firewall and configured in the FTPS server. The server must also announce its public IP address in passive replies when it sits behind NAT, or clients receive an unreachable private address.
| Symptom | Likely cause | Fix |
|---|---|---|
| Login works, listing hangs | Passive port range blocked | Open and configure a fixed passive range |
| Private IP in PASV reply | Server behind NAT | Set the external address in the server |
| Data connection refused, 522 or 425 | TLS session resumption required | Use a client that supports session reuse |
| Certificate warning | Self-signed or expired certificate | Install a CA-signed certificate |
| Password sent in clear | TLS optional on explicit port | Require TLS before authentication |
Some deployments use CCC (clear command channel) after login so firewalls can read the passive port again. This trades away control channel confidentiality and should be used only when no other option exists.
Configuring FTPS securely
A secure FTPS configuration combines modern TLS settings with strict FTP-level policies. Administrators should treat the FTPS server like any other TLS endpoint and audit it with the same tools used for web servers.
- Allow only TLS 1.2 and TLS 1.3 with forward-secret cipher suites, and disable SSL 3.0, TLS 1.0 and TLS 1.1.
- Require encryption on both channels by enforcing
PROT Pand rejecting clear data transfers. - Enable TLS session resumption checks so attackers cannot hijack data connections.
- Use certificates from a trusted authority and renew them before expiry; automated issuance with Let’s Encrypt works for many servers.
- Consider client certificates for machine-to-machine partners in addition to passwords.
- Restrict accounts to chrooted directories and log every login and transfer.
Popular server implementations such as vsftpd, ProFTPD, FileZilla Server and IIS FTP all support FTPS, but default settings often permit plaintext, so hardening must be checked explicitly after installation.
Limitations and common misconceptions
FTPS protects data only in transit; files stored on the server remain unencrypted unless separate storage encryption is applied. It also does not verify file integrity at the application level, so many organizations add checksums or PGP signatures for regulated exchanges.
- FTPS is not SFTP: they share a purpose but no code, ports or authentication model.
- Port 990 is not required: explicit FTPS on port 21 is the standard approach.
- AUTH TLS alone is not enough: without
PROT P, file contents still travel in clear text. - FTPS is not obsolete: it remains mandated in many partner agreements and compliance programs.
Put simply
FTPS is the old way of sending files between computers, made safe with the same lock that protects banking websites. Plain FTP sends everything, even passwords, like a postcard anyone along the route can read. FTPS puts that postcard into a sealed, tamper-proof envelope.
The catch is that FTPS uses several separate connections for one session, which makes it awkward for firewalls. It is secure when configured correctly, but it takes more setup than newer alternatives that use a single connection.
In practice
A regional grocery chain exchanges daily inventory and invoice files with about forty suppliers. Many suppliers run older enterprise software that only speaks FTP, so replacing the protocol entirely is not realistic. The IT team deploys an explicit FTPS server on port 21, requires TLS before login, enforces PROT P and opens a passive port range of 100 ports on the firewall.
Each supplier receives its own account limited to a private folder, and the server presents a certificate from a public authority so supplier clients validate it without manual steps. Two suppliers whose software supports only implicit mode connect on port 990 during a transition period.
Within a month, the chain passes a payment card audit item that had flagged plaintext credentials on FTP, and nightly transfers of roughly 2 GB continue on the existing schedule. The result is encrypted supplier exchange without rewriting partner integrations.