Port 21: FTP
Port 21 is used by FTP over TCP. Port 21 is the FTP control channel. It appears in the study tables for 200-301, 220-1201, N10-009, SY0-701.
What runs on port 21
File Transfer Protocol (FTP) uses TCP at the application layer. FTP control channel for logins and commands; credentials travel in cleartext. Treat it as unencrypted: credentials or content can be read by anyone on the path.
Port 21 is the FTP control channel. Logins, directory commands and transfer requests cross it as plain text, including the username and password, and the file data moves on a second connection.
Secure alternative and common mix-ups
FTP is not protected on its own, so the study tables point to SFTP as the replacement, which uses port 22.
FTP is the encrypted option for data on port 20, TFTP on port 69.
SFTP and FTPS are different things. SFTP runs inside an SSH session on port 22, while FTPS is FTP wrapped in TLS. Both fix the cleartext problem, but they need different firewall rules.
Check port 21 on your own network
To test a remote host from Windows, run Test-NetConnection with the host name and -Port 21. From Linux or macOS, run nc -vz host 21. To see what is listening on the machine itself, use ss -tulpn on Linux or netstat -ano on Windows and look for :21.
A refused connection usually means no service is listening, and a probe that hangs usually means a firewall dropped it. Check the service, then the host firewall, then the network firewall, in that order.
Exam objectives that include it
These are the objectives whose tables list port 21. The same row appears in the cheat sheet for each exam.
Related ports
Learn 21 together with these. They are its pair, its secure counterpart or a service that sits under the same objective.
Questions
Not by itself. FTP on port 21 sends data without encryption, so use the secure replacement or keep it on a trusted network.
Keep going with the ports quiz and the cheat sheets.
Free plan, no card.