HomeTopicsSFTP vs FTPS vs FTP › SFTP vs FTPS

SFTP vs FTPS: The Definitive Admin's Comparison

Sooner or later, every administrator gets handed the same requirement: "we need to move files securely." Two acronyms immediately appear, one letter apart — SFTP and FTPS — and they look so similar that people assume they are flavors of the same thing. They are not. They are two unrelated protocols that happen to solve the same problem, and the differences between them decide how many firewall rules you write, what breaks at renewal time, and how painful your unattended transfer jobs are to keep alive.

This article compares the two the way you will actually experience them: what each one puts on the wire, which ports have to be open, how each side proves its identity, how well each behaves in scripts that run at 2 a.m., and what your partners are likely to support. It ends with a weighted scorecard you can copy into a document and fill in for your own situation. It is part of our SFTP vs FTPS vs FTP series, and everything here is explained from scratch — no prior protocol knowledge assumed.

First, Untangle the Names

SFTP stands for SSH File Transfer Protocol. It is a file transfer service built on top of SSH — Secure Shell, the same encrypted remote-login protocol administrators use every day to reach Linux servers. SFTP is not FTP with security added. It shares no commands, no code, and no history with FTP. It was designed later, from a clean sheet, as a subsystem of SSH: when you connect with an SFTP client, you are making an SSH connection that speaks a file-transfer dialect instead of opening a shell.

FTPS stands for FTP over TLS (you will also see "FTP over SSL," the older name for the same idea). This one really is FTP — the classic protocol with its control connection and separate data connections — wrapped inside TLS, the same encryption layer that turns HTTP into HTTPS. Everything you know about plain FTP still applies to FTPS: the command channel, the passive mode negotiation, the separate connection per transfer. TLS adds encryption and server certificates around that existing machinery without changing it.

So the honest one-line summary is: SFTP is a different protocol that borrowed FTP's initials, while FTPS is the FTP you already know wearing an encryption layer. That single fact predicts almost every difference in the rest of this article.

Remember: SFTP is not "FTP over SSH," and it is not FTP tunneled through anything. It is a separate protocol that rides inside an SSH connection. If a vendor form asks whether you support "FTP-SSL" they mean FTPS; if it says "FTP over SSH" they are almost always confused, and it is worth a clarifying email before you open firewall ports.

What Each One Looks Like on the Wire

The clearest way to see the difference is to count connections. An SFTP session is one TCP connection, normally to port 22 on the server. Login, directory listings, uploads, downloads — everything travels through that single encrypted channel, multiplexed the way SSH multiplexes everything. An FTPS session is two or more connections: a long-lived control connection carrying commands, plus a fresh data connection for every file transferred and every directory listed, each negotiated on the fly to a port the server announces mid-session.

The diagram below shows the two side by side: SFTP's single tunnel on the left, FTPS's control-plus-data pair on the right.

SFTP Client Server port 22 One SSH connection. Commands, listings, and file data share the same tunnel. FTPS Client Server port 21 + passive range e.g. 50000+ control (TLS), port 21 data (TLS), new high port per transfer Two TLS-wrapped connections, negotiated like plain FTP. Same goal — encrypted file transfer — reached by two unrelated designs. The connection count drives the firewall work, which is where the protocols differ most.

FTPS itself comes in two variants, worth knowing because both are still in the wild. Explicit FTPS starts as a plain FTP connection to port 21; the client then sends the command AUTH TLS, and both sides upgrade the connection to encrypted before the password is sent. Implicit FTPS skips the upgrade and expects TLS from the very first byte, traditionally on port 990. Explicit is the standardized, modern form; implicit survives in older devices and some hosted services. Our FTPS pillar covers the two variants in depth.

When you are unsure what a server actually speaks, two quick probes settle it. An SSH banner means SFTP territory; a certificate handshake after AUTH TLS means explicit FTPS:

# Does port 22 answer with an SSH banner? (SFTP lives here)
nc -w 3 transfer.example.com 22
SSH-2.0-OpenSSH_for_Windows

# Does port 21 upgrade to TLS? (explicit FTPS)
openssl s_client -starttls ftp -connect transfer.example.com:21
# ...certificate chain and handshake details follow

# Implicit FTPS: TLS from the first byte on 990
openssl s_client -connect transfer.example.com:990

Security: Both Encrypt Well — the Differences Live Elsewhere

Here is a claim that surprises people: on pure cryptographic strength, SFTP and FTPS are effectively equals. Both encrypt credentials and file contents with modern ciphers. Both protect you from someone reading transfers off the network. A correctly configured deployment of either will pass a security review. Choosing between them on "which encryption is stronger" is a dead end — the meaningful security differences are structural, not cryptographic.

The first structural difference is how the server proves its identity. An SFTP server presents a host key — a keypair the server generates for itself. The first time a client connects, it records the key's fingerprint; on every later connection it checks that the key has not changed. This model is called trust on first use: simple, free, no third party involved, but it does put weight on verifying that first fingerprint through some out-of-band channel (a phone call, a partner's onboarding sheet) rather than blindly accepting it.

An FTPS server presents an X.509 certificate — the same kind of document HTTPS websites use — normally signed by a certificate authority the client already trusts. The client checks the signature chain and that the name on the certificate matches the host it dialed. This model gives you third-party vouching and works smoothly with strangers, but it introduces a lifecycle: certificates expire and must be renewed, and an expired certificate stops transfers as effectively as a power cut.

The second structural difference is specific to explicit FTPS: because the session starts in cleartext and upgrades, a misconfigured server can quietly accept clients that never upgrade at all, sending passwords in the clear while everyone assumes otherwise. Good FTPS servers have a setting that requires encryption before login and requires PROT P — the command that encrypts the data connections too — and that setting should always be on. SFTP has no equivalent trap; there is no unencrypted variant to fall back to.

Ports and Firewalls: The Biggest Practical Difference

Ask any network administrator which of these protocols they prefer to firewall, and you will get the same answer: SFTP, without hesitation. The reason is arithmetic. An SFTP server needs exactly one inbound rule: TCP port 22. That is the whole conversation with the firewall team, and the rule never changes.

FTPS inherits FTP's two-connection design, which means it also inherits the passive-mode dance: for every transfer, the server picks a high port from its passive port range and tells the client to connect there. So the firewall needs port 21 (and 990 if you allow implicit) plus the entire passive range — often a few dozen to a few hundred ports — opened and forwarded correctly. The mechanics of that negotiation are exactly the ones covered in our active vs passive FTP explainer, and the server-side setup lives in configuring passive port ranges.

TLS then adds an extra twist that catches even experienced admins. With plain FTP, many firewalls and NAT devices read the control channel, spot the port negotiation, and helpfully open the data path or rewrite addresses on the fly. Encrypt the control channel and the firewall can no longer see the negotiation — the helper goes blind, and setups that "just worked" with plain FTP start failing with FTPS. The classic symptom is a login that succeeds followed by a directory listing that hangs. The full story is in this pillar's companion article, the three protocols from the firewall's point of view.

None of this makes FTPS unusable — thousands of organizations run it happily — but it does mean FTPS costs more firewall work up front and more troubleshooting over its lifetime, especially when load balancers or NAT sit in the path.

Authentication: SSH Keys vs Certificates and Passwords

Both protocols support ordinary usernames and passwords, safely encrypted in transit. The difference is what each offers beyond passwords.

SFTP's marquee feature is public key authentication. Each user generates a keypair — a private key that stays on their machine and a public key you install on the server. Logins then happen without any password at all: the client proves possession of the private key cryptographically. Keys are free to create, never expire on their own, can be revoked individually by deleting one line on the server, and are the natural fit for unattended jobs, because nothing interactive is required and no secret has to be embedded readably in a script. The tradeoff is inventory discipline: keys accumulate, and you need a habit of removing them when people leave. Our SFTP pillar goes deeper on key management.

FTPS authentication usually means a password sent over the encrypted control channel — perfectly sound, just password-shaped, with the rotation and sharing habits that follow. For higher assurance, FTPS can also do client certificates, where each client presents its own X.509 certificate and the server validates it. This is genuinely strong and appears in regulated business-to-business exchanges, but it doubles your certificate lifecycle: now client certificates expire too, on their own schedules, and each expiry is a future outage waiting on a calendar reminder.

A fair summary: SFTP gives you strong, script-friendly authentication with almost no ceremony; FTPS gives you familiar passwords by default and strong authentication only by taking on PKI paperwork.

Automation: Which One Behaves at 2 a.m.?

Most file transfer in business is not a human dragging files in a client — it is scheduled jobs moving invoices, backups, and exports while nobody watches. Judge the protocols by that standard and the differences sharpen.

SFTP was practically designed for unattended work. Key authentication means no password prompts and no plaintext credentials in scripts. One connection means one thing to time out, one thing to retry, one firewall path that either works always or never — and because there is no per-transfer port negotiation, a job that works once tends to work identically forever. Host key pinning also travels well: the script fails loudly if the server's identity changes, which is exactly the behavior you want.

FTPS automates perfectly well too — every serious scripting tool supports it — but its failure modes are more numerous. A job can fail because the passive range changed, because a new firewall in the path cannot see the negotiation, or because the server's certificate expired overnight. Certificate expiry deserves special respect: it arrives on a fixed date, affects every client at once, and the fix requires whoever controls the certificate, not whoever noticed the failure. If you run FTPS, the renewal date belongs in the same calendar as your domain renewals.

Purpose-built tools narrow the gap in practice. A scheduler like Sysax FTP Automation stores the protocol choice inside each connection profile alongside host, credentials, and retry rules — so a scripted job speaks SFTP or FTPS with the same folder-monitoring and error handling either way, and switching a partner from one protocol to the other is a profile edit rather than a rewrite.

Ecosystem: What Clients, Servers, and Partners Actually Support

Protocol choices are rarely made alone; the other end of the transfer gets a vote. Some honest generalizations about where each protocol is strong:

  • SFTP is the default in the Unix and cloud world. Every Linux and macOS machine ships with an SFTP client and, effectively, a server via SSH. Managed file transfer services and cloud transfer endpoints lead with SFTP. When a developer or hosting provider says "secure file transfer," they usually mean this.
  • FTPS is strong where FTP was strong. Windows-centric shops, older EDI and retail supply chains, and long-lived business integrations often standardized on FTP years ago and added TLS to keep the tooling. For a partner whose software already speaks FTP, FTPS is the smallest possible change.
  • Web browsers support neither. If your real requirement is "a person clicks a link and downloads a file," both protocols are the wrong tool, and an HTTPS-based approach fits better — see our HTTP and HTTPS file transfer pillar.
  • Server-side, this is not either/or. Modern transfer servers speak both protocols from one installation and one user database. Sysax Multi Server, for example, serves FTP, FTPS, and SFTP simultaneously, which lets you offer SFTP as the preferred door while keeping an FTPS door open for the partners who need it.

The Scorecard: A Weighted Decision Framework

When the choice is genuinely open, resist deciding by vibe. Copy the table below into a document, adjust the weights to your situation, score each protocol from 1 (poor fit) to 5 (excellent fit) on each row, multiply, and total. The pre-filled scores reflect the typical case discussed above — override any of them where your environment differs, and delete rows that do not apply.

Criterion Weight (1–3) SFTP score FTPS score What to consider
Firewall simplicity 3 5 2 One port vs port 21 plus a passive range; NAT in the path favors SFTP further.
Unattended automation 3 5 3 Key auth with no expiry vs passwords/certificates with renewal dates.
Partner compatibility 3 4 4 Score from your real partner list, not from this table — survey them first.
Identity and trust model 2 4 4 Host key fingerprints (verify once) vs CA-signed certificates (renew forever).
Fit with existing tooling 2 Score locally: existing FTP scripts and clients favor FTPS; SSH-based shops favor SFTP.
Compliance expectations 2 5 5 Both satisfy encryption-in-transit requirements when configured correctly.
Troubleshooting burden 1 4 2 Fewer connections, fewer failure modes; FTPS inherits every FTP data-connection issue.

Using it is simple: for each row, multiply the weight by each protocol's score, then sum each column. With the default numbers, SFTP wins clearly — which matches the general industry drift — but the table earns its keep in the cases where it does not. If your partner survey comes back heavily FTP-shaped, or your organization already runs a certificate authority and manages renewals well, FTPS can legitimately come out ahead. The point of scoring is to make that reasoning visible and defensible, which matters when someone asks "why did we pick this?" two budget cycles from now. For a partner-by-partner version of this exercise with worked examples, see choosing a protocol for partner exchange.

Rule of thumb: for a brand-new deployment where you control both ends, pick SFTP — one port, key authentication, nothing to renew. Reach for FTPS when the other side's tooling, standards, or auditors specifically require it. Either choice is defensible; running plain FTP for sensitive data is the only indefensible option on the menu.

The Short Version, and Where to Go Next

SFTP and FTPS both deliver encrypted, authenticated file transfer, and both are respectable choices. SFTP is a clean-sheet protocol inside SSH: one connection, one port, key-based logins, minimal firewall conversation, no expiry dates. FTPS is classic FTP wrapped in TLS: familiar to legacy tooling and strong on certificate-based trust, but it carries FTP's multi-connection firewall complexity plus a certificate lifecycle. New builds usually land on SFTP; existing FTP estates and certain partner ecosystems keep FTPS very much alive.

From here, three natural next steps in this series: the firewall's view of the three protocols expands the networking half of this comparison, the partner decision framework applies the scorecard to real counterparties, and migrating from FTP to SFTP or FTPS is the playbook for acting on the decision.

Frequently Asked Questions

Is SFTP just FTP running over SSH?
No. SFTP is a separate file transfer protocol designed as part of the SSH family. It shares no commands or code with FTP — the similar name is the only connection. FTPS, by contrast, really is FTP with TLS encryption wrapped around it.
Which is more secure, SFTP or FTPS?
Configured correctly, both encrypt strongly and both pass security reviews — neither has a meaningful cryptographic edge. The practical security differences are structural: SFTP has no unencrypted fallback to misconfigure, while explicit FTPS must be set to require encryption, and FTPS adds certificate lifecycle risks.
What ports do I need to open for each protocol?
SFTP needs one inbound port: TCP 22. FTPS needs port 21 (plus 990 if you support implicit mode) and the server's whole passive port range for data connections — typically dozens of high ports that must match between the server settings and the firewall.
Do I need to buy a certificate to run an SFTP server?
No. An SFTP server generates its own host key for free, and clients verify its fingerprint on first connection. Certificates from a certificate authority are an FTPS (and HTTPS) concept. You should still share the host key fingerprint with users through a trusted channel so they can verify it.
Can one server offer SFTP and FTPS at the same time?
Yes. They listen on different ports (22 vs 21/990), so a multi-protocol server can serve both from one installation and one set of user accounts. That is a common migration strategy: offer SFTP as the preferred protocol while FTPS remains available for partners who need it.
Why does my FTPS login succeed but directory listings hang?
That is the signature of a data-connection failure. The TLS-encrypted control channel hides FTP's port negotiation from firewalls and NAT devices, so the separate data connection never gets through. The fix is a properly configured and firewall-permitted passive port range on the server side.

From the Sysax team: we build secure file transfer software for Windows — Sysax Multi Server, an FTP, FTPS, SFTP, and HTTPS server, and Sysax FTP Automation for scheduled, scripted transfers. Free trials are on the download page.