FTP basics

FTPS

FTPS wraps FTP in TLS — either implicit TLS on port 990 or explicit TLS via AUTH TLS on port 21. Certificate validation is mandatory; otherwise you’re vulnerable to active MITM.

SFTP

Despite the name, SFTP is not “FTP over SSH.” It is the SSH File Transfer Protocol — a binary packet protocol multiplexed inside an SSH connection (typically port 22). It shares SSH’s host key authentication, user auth, and encryption model.

Choosing a protocol. For interactive admin file transfer, SFTP or SCP over SSH is usually simpler to secure than opening a passive FTP port range. For anonymous public downloads, HTTPS object storage or rsync-over-SSH often replaces classic FTP.