← Back to all network ports
TCP
Vulnerable

20 FTP Data

FTP data channels move file payloads after the control connection negotiates a transfer session.

Security Context

Port 20 is high-risk when broadly exposed. Treat it as an attack-surface decision, not just a connectivity setting, and confirm whether the listener truly needs to be reachable.

  • !Plaintext FTP exposes credentials and data in transit.

Nmap Check

Use a version probe first so you confirm whether the expected service is really what is listening on this port.

nmap -sV -p 20 <host>

Firewall Commands

UFW
sudo ufw allow 20/tcp
iptables
sudo iptables -A INPUT -p tcp --dport 20 -j ACCEPT

Related TCP Ports