Is port 21 (FTP) safe to expose?
FTP — file transfer, usually unencrypted. Exposing it to the internet is high risk.
Why exposing port 21 is risky
Credentials and data travel in clear text, and anonymous FTP often leaks files. Exposed FTP is scanned constantly.
How to check if it's exposed
From outside your network, a quick nmap -p 21 <your-ip> (or an external port scanner) shows whether 21 answers. On the host, ss -tlnp | grep :21 shows what's listening and on which interface — it should be a private address, not 0.0.0.0.
How to secure it
- Prefer SFTP (over SSH) or FTPS.
- Disable anonymous access and restrict the source.
SkyShield watches what's really exposed
SkyShield follows your firewall rules through to the container and shows what the internet can actually reach. Free for one server, then from $49 per server a month. Start free.