Port 21 — FTP (Control)
File Transfer Protocol control channel, used to establish sessions, authenticate credentials, and issue navigation commands.
⚡ Primary Use Cases & Environments
- ✓Legacy web hosting file uploads
- ✓Network-attached storage (NAS) administration
🛡️ Security & Vulnerability Analysis
Usernames and passwords sent over port 21 are completely unencrypted. Anyone sniffing the network can capture admin credentials in plaintext.
🔧 Network Diagnostics & Inspection
🔥 Firewall Configuration Rules (UFW & iptables)
❓ Frequently Asked Questions (FAQ)
What is the difference between port 21 and port 22?
Port 21 is unencrypted legacy FTP. Port 22 is SSH / SFTP, which encrypts authentication, terminal sessions, and file transfers using strong public-key cryptography.
How do I test if FTP port 21 is open?
Run "nc -zv <target-ip> 21" or "telnet <target-ip> 21". If open, the server returns an FTP banner such as "220 Service Ready".