Skip to content
Vol. 1 · Ed. 2026
CyberGlossary
Entry № 437

FTP

What is FTP?

FTPA legacy file-transfer protocol (RFC 959) that uses TCP port 21 for control and port 20 for data, transmitting credentials and files in cleartext and largely deprecated for security reasons.


The File Transfer Protocol, defined in RFC 959, was one of the first Internet protocols, splitting traffic across two TCP connections: a control channel on port 21 for commands such as USER, PASS, RETR, STOR and a data channel on port 20 in active mode or an ephemeral port in passive mode. FTP transmits credentials and file content in cleartext, allowing any on-path attacker to harvest passwords or modify transfers. Variants such as FTPS (FTP over TLS, RFC 4217) add encryption, while SFTP (over SSH) replaces FTP entirely. Modern environments avoid plain FTP, favoring SFTP, HTTPS uploads, or object storage with signed URLs.

Examples

  1. 01

    A legacy build server still publishes nightly artifacts via ftp upload.example.com.

  2. 02

    A penetration tester sniffs port 21 traffic and recovers admin credentials in plaintext.

Frequently asked questions

What is FTP?

A legacy file-transfer protocol (RFC 959) that uses TCP port 21 for control and port 20 for data, transmitting credentials and files in cleartext and largely deprecated for security reasons. It belongs to the Network Security category of cybersecurity.

What does FTP mean?

A legacy file-transfer protocol (RFC 959) that uses TCP port 21 for control and port 20 for data, transmitting credentials and files in cleartext and largely deprecated for security reasons.

How does FTP work?

The File Transfer Protocol, defined in RFC 959, was one of the first Internet protocols, splitting traffic across two TCP connections: a control channel on port 21 for commands such as USER, PASS, RETR, STOR and a data channel on port 20 in active mode or an ephemeral port in passive mode. FTP transmits credentials and file content in cleartext, allowing any on-path attacker to harvest passwords or modify transfers. Variants such as FTPS (FTP over TLS, RFC 4217) add encryption, while SFTP (over SSH) replaces FTP entirely. Modern environments avoid plain FTP, favoring SFTP, HTTPS uploads, or object storage with signed URLs.

How do you defend against FTP?

Defences for FTP typically combine technical controls and operational practices, as detailed in the full definition above.

What are other names for FTP?

Common alternative names include: File Transfer Protocol.

Related terms