Port 20 — FTP (Data)
File Transfer Protocol data channel, used alongside port 21 for transferring actual file payloads in active FTP mode.
⚡ Primary Use Cases & Environments
- ✓Legacy active mode FTP file data transfers
- ✓Legacy automated backup systems
🛡️ Security & Vulnerability Analysis
FTP transmits credentials and data in cleartext. Replace with SFTP (port 22) or FTPS (FTP over TLS) for all modern workflows.
🔧 Network Diagnostics & Inspection
🔥 Firewall Configuration Rules (UFW & iptables)
❓ Frequently Asked Questions (FAQ)
Why does FTP use both port 20 and port 21?
FTP separates control commands (authentication, navigation, commands on port 21) from the actual binary or text file payload transfer (channel on port 20 in active mode).
Should port 20 be open on modern servers?
Generally no. Passive mode FTP uses high ephemeral ports instead of port 20, and modern environments use SFTP (port 22) which needs only a single encrypted TCP connection.