SFTP vs FTPS vs HTTPS: Which Secure Transfer Protocol Should You Use?

SFTP runs inside an SSH connection on one port, FTPS adds TLS to classic FTP and needs careful firewall handling, and HTTPS carries file exchange over ordinary web connections. For most new business integrations SFTP or HTTPS is easier to run than FTPS, but the right answer is usually whatever your partner can support with the fewest exceptions.
Compare SFTP servers and secure transfer software on SecureTools.
Three protocols and one confusing naming pattern
People often use SFTP and FTPS as if they were interchangeable. They are not. The names differ by one letter, but the technology underneath is different, and so are the ports, the setup and the things that go wrong. Adding HTTPS to the comparison makes the picture clearer, because it is the protocol most teams already trust for everything else they do online.
This article compares the three from the point of view of someone who has to run or approve a connection, not someone writing protocol software. We stay with what each one is, what it protects, what it leaves exposed and where it tends to cause trouble. If you want a broader view of why transfers are managed at all, start with our overview of managed file transfer.
One reminder before the details: a secure protocol protects data while it moves. It says nothing about who is allowed to receive the file, what happens to it afterward, or whether the server is configured sensibly.
SFTP: file transfer carried inside an SSH session
SFTP stands for SSH File Transfer Protocol. According to the Wikipedia article on the protocol, it is most often used as a subsystem of SSH version 2 implementations and uses port 22, the same port as other SSH services. A frequent misunderstanding is that it is FTP tunneled through SSH. It is not: the same source describes it as a new protocol designed from the ground up.

An interesting detail is that SFTP itself does not supply authentication and security. It assumes a secure channel, normally SSH, that has already authenticated the client. That is why SFTP configuration is really SSH configuration: keys, host verification, user restrictions and logging all live in the SSH server.
Practical strengths include a single port to open, support for resuming interrupted transfers, directory listing, file removal and symbolic links, and the ability to preserve attributes such as timestamps. It also avoids some of the quirks of older copy tools. A limitation worth knowing is that SFTP was developed through IETF drafts and never became a formal standard, so behavior can vary a little between implementations. Our guide to hardening an SFTP server covers the configuration side.
FTPS: classic FTP with a TLS layer
FTPS, sometimes written FTP-SSL, extends the old FTP protocol with Transport Layer Security. It is not SFTP and has nothing to do with SSH. It inherits FTP's habit of using separate control and data connections, which explains most of its complications.
There are two modes. Explicit FTPS starts on the normal FTP control port and the client sends an AUTH TLS command to upgrade the connection. This is the mode defined in RFC 4217, and it lets one port serve both secure and non-secure clients. Implicit FTPS expects TLS from the first byte and traditionally uses ports 990 for control and 989 for data. Wikipedia describes the implicit mode as not defined in RFC 4217 and considered deprecated, so new projects should prefer explicit mode.
A subtle point from RFC 4217 is that protecting the control channel is not the same as protecting the files. After AUTH succeeds, the control channel is protected, but the data channel is clear by default. The client must send the PBSZ and PROT P commands to have TLS applied to data connections. A server that does not insist on this can quietly accept unprotected file transfers.
The RFC also describes an optional command that drops the control channel back to plaintext and flags serious security issues with it, noting servers may refuse it. In most business setups there is no reason to allow it.
HTTPS: the protocol your network already trusts
HTTPS is HTTP running over TLS. The server presents a certificate, usually signed by a trusted certificate authority, and the client checks it matches the site. The default port is 443, which is almost always open outbound, and traffic looks like normal web traffic to firewalls.
For file exchange, HTTPS is used in two ways: people uploading and downloading through a web page, and systems calling an API with file contents or links. The first suits occasional human use. The second suits integrations where both sides can write or configure web clients.
According to the Wikipedia description, HTTPS protects the full HTTP message, including the path, parameters, headers and body. Features such as forward secrecy mean that recorded traffic should stay private even if a long-term key is later compromised. The weaknesses are more about the surrounding system: certificate handling, weak server settings or content loaded over plain connections.
A caveat for large or unattended transfers is that plain HTTPS lacks the file-oriented conveniences of SFTP, such as directory listings and attribute handling, so teams usually add tooling or an API layer on top.
Head-to-head comparison
The table below summarizes the differences that tend to matter in a planning meeting.

| Question | SFTP | FTPS | HTTPS |
|---|---|---|---|
| Underlying security | SSH | TLS added to FTP | TLS added to HTTP |
| Typical ports | 22 | 21 for explicit; 990 and 989 for implicit; extra data ports | 443 |
| Connections used | Single channel | Separate control and data channels | Single request and response connections |
| Firewall friendliness | Easy, one port | Hardest, data ports must be planned | Easiest, usually open outbound |
| Identity model | User keys or passwords plus a server host key | Server certificate plus user credentials | Server certificate plus tokens, passwords or client certificates |
| Best known for | Automation between systems | Compatibility with older partners | Browsers, APIs and web portals |
| Standardization | IETF drafts, never a formal standard | RFC 4217 for the explicit mode | Widely standardized web protocols |
No column wins everywhere. SFTP is the neat middle path for automation, HTTPS is the easiest through a network, and FTPS survives mainly where partners or legacy software demand it.
Firewalls and network quirks
Network behavior is where FTPS earns its reputation for being awkward. Plain FTP opens extra ports for data, and many firewalls watch the control messages to open those ports on demand. When the control channel is encrypted, the firewall cannot read those messages, so connections that work with plain FTP may fail with FTPS.
The usual remedy is to restrict the server's data connections to a small range of ports and open exactly those through the firewall, plus ensure the server advertises the correct external address. This is manageable, but it must be documented and tested, and every partner behind their own firewall adds another variable.
SFTP avoids the issue by using one port. HTTPS avoids it by using the web port that is almost always allowed. If your partners sit behind strict corporate networks, that simplicity can decide the matter on its own.
Authentication: keys, certificates and passwords
Each protocol trusts different things, which affects how you manage credentials.
- SFTP: the server proves itself with a host key, and the user proves themselves with a key pair or a password. RFC 4251 describes the idea that clients must know the server's public host key in advance to be sure they are talking to the right machine.
- FTPS: the server presents a certificate. A certificate signed by a trusted authority helps prevent man-in-the-middle attacks, while a self-signed one triggers warnings that people learn to click through.
- HTTPS: the server presents a certificate, and the client authenticates with a token, credentials or in stricter setups its own certificate.
Host key handling in SSH deserves special attention. RFC 4251 notes that accepting an unverified key on first connection protects against passive eavesdropping but leaves a connection open to active interception, and says implementations should not normally allow this by default. Comparing key fingerprints through a separate channel, such as a phone call, is the recommended way to establish trust for a new connection.
What each protocol does not protect
Encryption in transit is valuable, but each option has limits you should state out loud in any risk review.

- After delivery: none of the three protects a file once it lands on a disk. Storage encryption, access control and retention are separate decisions.
- Metadata: HTTPS does not hide the server's address, and may not hide the domain name. Traffic size and timing can also reveal patterns.
- Weak configuration: an old TLS version or a weak setting can undermine HTTPS and FTPS. NIST SP 800-52 Revision 2 is a published reference for choosing and configuring TLS, although its own page notes that the publication is currently under review.
- Account compromise: a stolen key or password defeats any protocol, which is why key hygiene and access reviews matter.
For a plain-English explanation of what the lock icon does and does not promise, see our guide to TLS for business.
How partners usually decide
In practice, the protocol is often chosen by the less flexible party. A short scenario table helps you decide when you have a choice.
| Scenario | Likely choice | Reason |
|---|---|---|
| New system to system integration you control on both ends | SFTP | One port, key-based automation, simple to script |
| Partner only supports an older FTP client | Explicit FTPS | Compatibility, with a defined data port range |
| Application sending files through an API | HTTPS | Fits existing web tooling and firewall rules |
| People exchanging occasional files | HTTPS through a web portal | No client software to install |
| Compliance review wants named controls | Whichever you can document | Evidence matters more than the protocol name |
Whichever you select, record the decision, the settings and the owner. Auditors rarely ask why you picked a protocol, but they do ask whether you can show how it is configured.
Configuration mistakes that undo the protocol
The protocol is rarely the weak point. The setup usually is. Watch for these recurring mistakes.
- Leaving password login enabled on an SFTP server meant to use keys.
- Allowing plain FTP on the same server, so a client can fall back to unencrypted transfers.
- Using FTPS without requiring data channel protection, so files travel in the clear.
- Accepting self-signed certificates or unverified host keys without a documented check.
- Sharing one account between several partners, which removes accountability.
- Skipping log review, so failed login bursts go unnoticed.
Several of these are one setting away from being fixed. The point of listing them is that a protocol comparison is only useful if the chosen option is also configured to refuse the weaker alternatives.
A short decision checklist
When you have to pick and justify a protocol, work through these questions in order.
- What does the partner already support, and can they change it without a project?
- Do both sides control their firewalls, and is a single port much easier than a port range?
- Is the transfer automated, interactive or API-driven?
- Which credential type can you manage reliably: keys, certificates or tokens?
- How will you prove the configuration to an auditor and monitor the connection?
If the first answer settles it, stop there. A technically perfect option that a partner cannot use is worse than an adequate one that works.
Moving off plain FTP
If you still have partners on plain FTP, treat it as a migration project, not an emergency. Plain FTP sends credentials and files without protection, so every month it stays in use is a month of avoidable exposure.
- List every account and partner still using plain FTP and what files they exchange.
- Offer an SFTP or HTTPS alternative, and publish clear connection instructions.
- Run the old and new methods in parallel for a short, agreed period.
- Disable plain FTP on the server and confirm by testing that connections are refused.
- Archive the logs from the retired service in line with your retention policy.
If your estate has many such flows, a platform with scheduling and reporting can ease the transition, as described in our guide to automating secure file transfers.
Frequently Asked Questions
SFTP is a separate protocol that runs inside an SSH connection and usually uses a single port, while FTPS is classic FTP with TLS encryption added. They share a similar name but not the same technology. In practice, SFTP tends to be simpler for firewalls, while FTPS is often chosen only because a partner or a legacy system requires it.
Sources and Further Reading
This guide draws on the pages below. Vendor documentation and standards change, so check the current version before relying on a detail.
- SSH File Transfer Protocol overview on Wikipedia (en.wikipedia.org)
- FTPS overview on Wikipedia (en.wikipedia.org)
- RFC 4217 Securing FTP with TLS (rfc-editor.org)
- RFC 4251 The Secure Shell Protocol Architecture (rfc-editor.org)
- NIST SP 800-52 Revision 2 TLS guidelines (csrc.nist.gov)
Related Articles

About the Author: Mohamed Siraj
Mohamed is the founder of SecureTools.live. He leads the team in building secure, compliant, and privacy-first directory tooling for software teams, finance professionals, and enterprise security leaders worldwide.