FTPS

Also known as: FTP Secure

On this page 8

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.

CommandPurposeTypical server reply
AUTH TLSUpgrade the control connection to TLS234 Proceed with negotiation
PBSZ 0Set protection buffer size, always zero for TLS200 PBSZ set to 0
PROT PEncrypt the data channel200 Protection level set to Private
PROT CLeave the data channel unencrypted200 Protection level set to Clear
CCCClear the control channel after login200 or 534 if refused
Security commands used in explicit FTPS

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.

PropertyExplicit FTPSImplicit FTPS
Control port21 (shared with plain FTP)990
Start of encryptionAfter the AUTH TLS commandImmediately on connect
Standard statusDefined in RFC 4217Legacy convention, deprecated
Server flexibilityCan require or allow TLSTLS always required
Downgrade riskPresent if TLS is optionalNone at connection start
Comparison of explicit and implicit FTPS

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.

ProtocolSecurity layerPortsFirewall friendliness
FTPNone21 plus dynamic data portsPoor, needs inspection helpers
FTPSTLS with X.509 certificates21 or 990 plus dynamic data portsPoor, helpers cannot read encrypted commands
SFTPSSH with host keys22 onlyGood, single connection
HTTPSTLS with X.509 certificates443 onlyExcellent
File transfer protocols compared

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.

SymptomLikely causeFix
Login works, listing hangsPassive port range blockedOpen and configure a fixed passive range
Private IP in PASV replyServer behind NATSet the external address in the server
Data connection refused, 522 or 425TLS session resumption requiredUse a client that supports session reuse
Certificate warningSelf-signed or expired certificateInstall a CA-signed certificate
Password sent in clearTLS optional on explicit portRequire TLS before authentication
Common FTPS connection problems

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 P and 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.