What is Port 21 and How Does It Work?
FTP (File Transfer Protocol) uses TCP port 21 for command and control channels to transfer files between clients and servers.
Security Vulnerabilities & Attack Vectors on Port 21
Standard FTP transmits credentials in plaintext, making it vulnerable to sniffing. Use SFTP (Port 22) or FTPS (Port 990) instead.
Auditing & Scanning Port 21 with Nmap
Run the following command to check if Port 21 is reachable and determine service fingerprints:
nmap -p 21 -sV --script ftp-anon,ftp-bounce