
FTP, FTPS and SFTP all move files between a computer and a server, and their names are confusingly similar. The important difference is security: plain FTP sends everything, including your password, unencrypted; FTPS adds TLS encryption to FTP; and SFTP is a completely different protocol that runs over SSH. This guide explains how each works, explicit vs implicit FTPS, which ports they use, and which one to choose for your server.
Quick answer FTP is unencrypted and should not be used over the internet. FTPS is FTP secured with TLS (the same encryption as HTTPS), on port 21 (explicit) or 990 (implicit), plus a range of data ports. SFTP is file transfer over SSH on a single port, 22. On Linux servers, SFTP is usually the simplest secure choice; FTPS suits Windows servers and clients that only speak FTP.
What is FTP?
File Transfer Protocol dates from the early 1970s. It uses two connections: a control connection on port 21 for commands and login, and a separate data connection for each file transfer or directory listing. In passive mode, the server opens a random high port for the data connection, which is why FTP needs a range of ports open in the firewall.
FTP has no encryption. User names, passwords and file contents travel in plain text and can be read by anyone on the network path. That makes plain FTP unsuitable for the internet today.
What is FTPS?
FTPS (FTP Secure, or FTP over SSL/TLS) is FTP with TLS encryption added to both the control and data connections. It works with the same FTP clients and servers, and uses X.509 certificates like websites do, so a certificate from a trusted authority avoids warnings.
Explicit vs implicit FTPS
- Explicit FTPS (FTPES): the client connects to port 21 and then upgrades the connection with the
AUTH TLScommand. This is the modern, standard method. Servers can require it, so no unencrypted login is accepted. - Implicit FTPS: the client connects to port 990 and TLS starts immediately. It is an older method kept for compatibility.
"FTPES" is simply another name for explicit FTPS.
What is SFTP?
SFTP (SSH File Transfer Protocol) is not FTP at all. It is a subsystem of SSH, so it uses SSH's encryption and authentication, including SSH keys, over a single connection on port 22. Any Linux server with OpenSSH already supports it, and Windows can run it with the built-in OpenSSH Server feature.
Comparison
| FTP | FTPS | SFTP | |
|---|---|---|---|
| Encryption | None | TLS | SSH |
| Ports | 21 + data ports | 21 (explicit) or 990 (implicit) + data ports | 22 only |
| Authentication | Password | Password, optional client certificates | Password or SSH keys |
| Firewall friendliness | Poor (many ports) | Poor (data ports, encrypted so firewalls cannot inspect them) | Excellent (one port) |
| Typical servers | vsftpd, ProFTPD, FileZilla Server, IIS | Same as FTP, with TLS enabled | OpenSSH |
| Use on the internet | Not recommended | Yes | Yes |
Which should you use?
- Linux server you already reach by SSH: SFTP. Nothing extra to install, one port, and key-based login.
- Windows server, or users and devices that only support FTP: FTPS with a valid certificate, explicit mode, and TLS required for every login. FileZilla Server and IIS both support it.
- Automated partner transfers: use whatever the partner requires; many enterprise systems support both.
- Plain FTP: only on isolated internal networks for legacy devices.
Setting up each on a server
- SFTP on Linux: already enabled with OpenSSH. Create a user and connect with any SFTP client. To restrict users to their own folder, use a
Matchblock withChrootDirectoryandForceCommand internal-sftpinsshd_config. - FTPS on Linux: install vsftpd or ProFTPD, add a TLS certificate, set the server to require TLS for logins and data, and open port 21 plus a fixed passive port range.
- FTPS on Windows: FileZilla Server or the IIS FTP role with an SSL certificate, requiring SSL for control and data channels.
Connecting with a client
FileZilla, WinSCP and Cyberduck support all three. Choose:
- SFTP - SSH File Transfer Protocol on port 22 for SFTP.
- FTP with Require explicit FTP over TLS for FTPS on port 21.
- Require implicit FTP over TLS for port 990.
Avoid the "Only use plain FTP (insecure)" option outside trusted local networks.
Frequently asked questions
Is FTPS the same as SFTP?
No. FTPS is FTP with TLS encryption; SFTP is a separate protocol that runs over SSH. They are not compatible with each other.
What port does FTPS use?
Port 21 for explicit FTPS and 990 for implicit FTPS, plus a configured range of passive data ports.
Which is more secure, FTPS or SFTP?
Both are secure when configured properly. SFTP is easier to secure and firewall because it uses one port and supports SSH keys.
Why should I not use plain FTP?
It sends passwords and files unencrypted, so anyone who can see the traffic can read them or steal your login.


