Port 21 (TCP) โ€” FTP

File Transfer Protocol control channel.

๐Ÿ”’ Runs locally โ€” your input never leaves this browser tab

Port
21
Protocol
TCP
Service
FTP
Internet exposure risk
High

Clear-text credentials. Replace with SFTP or FTPS.

Check if port 21 is open

On the server, see what is listening:

sudo ss -tulpn | grep ':21 '

From another machine, test reachability:

nc -zv your-server.example.com 21

Block port 21 from the internet

With UFW (Ubuntu/Debian):

sudo ufw deny 21

With firewalld (RHEL/AlmaLinux/Rocky):

sudo firewall-cmd --permanent --remove-port=21/tcp && sudo firewall-cmd --reload

โ† All common ports