Skip to content

All ports

Port 20: data / File Transfer Protocol (FTP) data

Port 20 is used by data and File Transfer Protocol (FTP) data over TCP. Port 20 carries the data channel of active-mode FTP: the server connects out from port 20 to a port the client chose. It appears in the study tables for 200-301, SY0-701, 220-1201, N10-009.

What runs on port 20

FTP (data) uses TCP at the application layer. Carries the file payload in active-mode FTP transfers. Treat it as unencrypted: credentials or content can be read by anyone on the path.

File Transfer Protocol (FTP) data uses TCP at the application layer. Active-mode FTP data channel: the server opens the file-transfer connection from port 20 to the client. Treat it as unencrypted: credentials or content can be read by anyone on the path.

Port 20 carries the data channel of active-mode FTP: the server connects out from port 20 to a port the client chose. In passive mode the server picks a high port for data instead, and port 20 is not used at all.

Secure alternative and common mix-ups

data is not protected on its own, so the study tables point to SFTP as the replacement, which uses port 21.

File Transfer Protocol (FTP) data is not protected on its own, so the study tables point to SFTP as the replacement, which uses port 21.

Commands and logins travel on port 21, file contents on a separate connection. A firewall that only opens port 21 lets users log in and then hang on the first directory listing.

Check port 20 on your own network

To test a remote host from Windows, run Test-NetConnection with the host name and -Port 20. From Linux or macOS, run nc -vz host 20. To see what is listening on the machine itself, use ss -tulpn on Linux or netstat -ano on Windows and look for :20.

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 20. The same row appears in the cheat sheet for each exam.

Learn 20 together with these. They are its pair, its secure counterpart or a service that sits under the same objective.

Questions

Not by itself. data and File Transfer Protocol (FTP) data on port 20 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.

Start studying free

Free plan, no card.