The short answer for website owners
If your host gives you SSH access, use SFTP for backups. If it doesn't, FTPS beats plain FTP, but it still can't back up the part of your site that matters most: the database. That's the whole answer, and the rest of this post explains why, so you can make the call for your own server instead of taking our word for it.
Most comparisons of SFTP and FTPS are written for IT teams moving invoices between banks. They talk about compliance checklists and managed file transfer suites. A WordPress owner on cPanel has a different problem. You want a copy of your files and your database sitting somewhere other than the server, every night, without babysitting it. Seen through that lens, the two protocols are not close at all.
SFTP and FTPS are not the same protocol
The names look like cousins. They aren't, because one letter of difference hides two separate families of software, built by different groups and years apart.
SFTP is the SSH File Transfer Protocol. It runs inside an SSH connection, the same kind you'd use to log in to a server's command line. The SSH transport layer is defined in RFC 4253, published in 2006. It handles key exchange, server authentication and encryption for everything that follows. SFTP itself was described in a series of IETF drafts; the version 3 draft from 2001 is the one almost every server still speaks today. It never became a final RFC, which surprises people, but it's what OpenSSH ships.
FTPS is old-school FTP with TLS wrapped around it. FTP dates back to the early 1970s. It was designed for a friendly, trusted network, so it sent usernames, passwords and files in clear text. FTPS bolts encryption on top. The standard way to do that is described in RFC 4217, "Securing FTP with TLS", from 2005.
So SFTP is "SSH that can move files". FTPS is "FTP that learned to encrypt". According to the Sysax write-up titled, bluntly, "SFTP is not FTPS", the two share no code and no wire format. A client that speaks one can't talk to a server that speaks only the other.
That difference shapes everything below. SSH gives you a whole remote session: file transfer, yes, but also the ability to run a command on the server. FTP, encrypted or not, gives you a file box. You can list, upload, download, rename and delete, and nothing else.
Ports, firewalls and why FTPS breaks behind shared hosting NAT
Here's where the practical pain shows up for anyone running backups from outside the server.
SFTP uses one TCP connection, normally on port 22. Commands, file data and directory listings all travel through that single encrypted pipe. Open port 22 outbound on your side, have the host allow it inbound, and you're done. Some hosts move SSH to a different port, such as 2222 or a five-digit number, to cut down log noise from bots. That's fine; it's still one port.
FTPS uses at least two connections. There's a control channel for commands, and a separate data channel for each file transfer or directory listing. There are also two flavours:
- Explicit FTPS starts on port 21 like normal FTP, then the client sends
AUTH TLSto upgrade the session. This is the RFC 4217 method. - Implicit FTPS expects TLS from the first byte, traditionally on port 990. It was never part of the standard, but plenty of older servers and clients still use it.
The data channel is where it goes wrong. In passive mode, which almost everyone uses now, the server tells the client "connect to me on port 49,213" (or whatever it picks from its passive range). With plain FTP, firewalls and NAT routers peek inside that control message and quietly open the right port. With FTPS, the control channel is encrypted. The firewall can't read the port number, so it can't open it. The result is the classic symptom: login works, then the directory listing hangs or times out.
The fix is server-side. The host has to publish a fixed passive port range, say 30000 to 30100, and open it in their firewall. The server also has to announce its real public IP rather than an internal one. On shared hosting, you don't control any of that. If the host set it up well, FTPS works. If not, you'll be on a support ticket for 2 days explaining what a passive port range is.
When we built BackupYourSite's connection pipeline, this was one of the reasons our team went with SSH only. A single port is easier to explain, easier to test and far less likely to break when a host changes its firewall.
Passwords vs keys: ed25519 and what your host panel offers
Both protocols can log in with a password. Only one of them makes key-based login a normal, everyday thing.
FTPS can use client certificates in theory. In practice, almost no shared host offers it, and almost no backup tool supports it. You get a username and a password, and that password has to be stored wherever your backup runs from.
SFTP rides on SSH, and SSH has had public key login from day one. You generate a key pair. The private half stays with your backup tool. The public half goes into a file called authorized_keys on the server. After that, nothing reusable crosses the wire at login. Even if someone captured the session, there's no password to steal.
The modern choice is an ed25519 key. It's short (the public key is a single line of about 80 characters), fast, and has been supported in OpenSSH since 2014. Older RSA keys still work, but if you're generating something new in 2026, ed25519 is the sensible default.
Where do you put the public key? It depends on the panel:
- cPanel: Security → SSH Access → Manage SSH Keys → Import Key. Paste the public key, then click "Authorize". Forgetting that last click is the most common reason a freshly imported key "doesn't work". (Many cPanel hosts also need SSH access turned on for your account first; some do it through a support request.)
- Plesk: the SSH Keys extension, or the subscription's web hosting access settings, depending on the version.
- A VPS: append the line to
~/.ssh/authorized_keysfor the right user, and check the file permissions are 600. - Managed WordPress hosts: usually a "SSH keys" page in the account dashboard. Our guide to WP Engine backups walks through one of these, since WP Engine runs SFTP as its own separate channel from SSH Gateway.
Our own dashboard follows the same pattern. Per the how BackupYourSite works page, you can generate an ed25519 key pair in the dashboard and paste the public half into your hosting panel yourself. We never have a way to install a key on your server. That's deliberate: access is something you grant, and something you can revoke by deleting one line.
Checking you're talking to the right server
Encryption only helps if the other end is the server you think it is, and the two protocols prove that in different ways. SSH uses a host key: the first time your backup tool connects, it sees the server's key fingerprint and should store it, so any later connection that presents a different key gets refused instead of silently trusted. FTPS uses a TLS certificate, the same kind your website uses for HTTPS, which works well when the host has a proper certificate for the FTP hostname and badly when it presents a self-signed one that your client has been told to ignore.
That second case is more common than it should be on shared hosting, where the FTP server often answers with a certificate issued to the machine's internal name rather than your domain. Plenty of tutorials tell you to tick "accept any certificate" to make the warning go away, and once you do that, the encryption still runs but nothing confirms who you're sending your backup to. If you use FTPS, make sure the certificate matches the hostname you connect to; if you use SFTP, write down the host key fingerprint from your host's documentation or support team and compare it on the first connection.
What neither protocol can do: dump your database
This is the part every enterprise comparison skips, and it's the part that matters most for a website.
A WordPress site is two things. There are the files: wp-content, uploads, themes, plugins, and wp-config.php. Then there's the MySQL or MariaDB database: every post, page, order, user, comment and setting. Lose the files and you can usually rebuild. Lose the database and the site is gone.
Neither SFTP nor FTPS can read a database. They move files. A database is not a file you should copy while it's running. The raw files under /var/lib/mysql are usually not even readable by your hosting user, and copying them live gives you a corrupt mess. To back up a database properly, something has to run mysqldump (or an equivalent) on the server and produce a consistent SQL export.
So the real question isn't "which transfer protocol?". It's "how does the database dump get made, and who makes it?" There are three common answers:
- A plugin inside WordPress dumps the database to a file on the server, then uploads it over FTP, FTPS or SFTP to remote storage. This works, but the dump runs inside PHP, competes with your visitors, and fails exactly when WordPress itself is broken.
- A cron job on the server runs
mysqldumpon a schedule and leaves a file for something else to pick up. Our cPanel full backup guide covers that cron-plus-SFTP route step by step. - An SSH session from outside runs the dump remotely and streams the output straight back. No file lands on the server's disk. No PHP is involved.
Only the third option is impossible over FTPS. FTP has no way to run a command. SSH does. That's the quiet advantage of SFTP: it's not the file transfer itself, it's the SSH connection underneath, which can also execute the dump.
This is exactly how the BackupYourSite SSH service works. At your scheduled time it opens an SSH connection, reads the database credentials from wp-config.php right then, tars the files and dumps the database, and streams both back over the same SSH channel. Nothing is written to your server's disk. Before a run counts as a success, the dump must end with MySQL's own "dump completed" marker. You can read the full sequence on the how it works page.
The SFTP-only account trap
One catch is worth knowing before you plan around SSH. Some hosts hand out "SFTP-only" accounts. These are chrooted to a folder and locked to the file transfer subsystem (in OpenSSH terms, ForceCommand internal-sftp). You can log in with an SFTP client and move files all day. You can't run a single command.
That means an SFTP-only login has the same blind spot as FTPS: no database dump. If your host's panel says "SFTP access" but SSH terminal logins fail, you're probably on one of these. Ask the host whether full SSH (shell) access is available on your plan. If it isn't, you need something on the server to create the dump, such as a plugin or a cron job, and SFTP just carries the result.
Which one to use for website backups
Here's the decision laid out for the setups we see most often. It assumes you care about a nightly copy of both files and database, stored off the server.
| Your situation | Use | Why |
|---|---|---|
| VPS or dedicated server with SSH | SFTP / SSH | One port, key login, and the database can be dumped remotely over the same connection. |
| cPanel shared hosting with SSH turned on | SFTP / SSH | Same as above. Import an ed25519 key under SSH Access and authorise it. |
| Host offers SFTP-only (no shell) | SFTP + something on the server to dump the DB | Files transfer fine, but a plugin or cron job has to create the SQL file first. |
| Host offers FTPS but no SSH at all | FTPS + a plugin for the DB | Encrypted transfer, but expect passive-port issues and password-only login. |
| Host offers only plain FTP | Avoid for backups | Credentials and data travel unencrypted. Use a plugin that stores backups elsewhere, or ask for SSH. |
| Managed WordPress host with its own SFTP | The host's SFTP, plus your own off-host copy | Host snapshots live on the host. A second, independent copy should not. |
A few notes on reading this table.
FTPS isn't "bad". On a well-configured server with a clean passive range, it's encrypted and reliable. The problem is that a website backup needs more than a file pipe, and FTPS can never be more than that. If your host offers both, pick SFTP every time.
The vendor guides in the top results mostly agree on the security side. Per the MSP360 comparison of SFTP and FTPS, both encrypt data in transit and both are considered secure when configured properly. The integrate.io guide reports that SFTP is generally easier to run through firewalls because of its single connection. Neither guide looks at databases, because neither is written for website owners. That gap is why we wrote this.
If your host has no SSH at all, you're not stuck. BackupYourSite has a free WordPress plugin for exactly that case. It runs inside WordPress, so it carries the usual plugin trade-offs, but it uses the same rule that a backup only counts once it's verified. The FAQ explains how the SSH service and the plugin compare.
Plain FTP: why it should not carry backups at all
Plain FTP still turns up in hosting welcome emails in 2026. It shouldn't carry anything you care about, and a backup is the most sensitive file your site has.
Think about what's inside one. A full WordPress backup contains wp-config.php, which holds your database name, user, password and the secret keys that sign login cookies. The database export holds every user's email address and password hash. A WooCommerce store adds customer names, addresses and order history. Sent over plain FTP, all of it crosses the network readable by anyone on the path: a shared office Wi-Fi, a compromised router, a misbehaving upstream network.
The login is worse. FTP sends the username and password in clear text at the start of every session. Many hosts reuse your cPanel password as your FTP password. So one sniffed login can hand over your whole hosting account, not just the backup folder.
The UpdraftPlus documentation on FTP vs SFTP vs FTPS makes the same point from the plugin side: plain FTP sends data without encryption, and it suggests SFTP or FTPS where the destination supports them. We'd go further. If the only remote option you have is plain FTP, treat that as a sign to change the destination, not to accept the risk.
How we put this comparison together
A quick note on methodology, since this is a security topic and you should know where the claims come from. We compared the protocol definitions directly: RFC 4253 for the SSH transport, the IETF filexfer draft for SFTP, and RFC 4217 for FTPS. We then read the six pages that rank for "sftp vs ftps" in US search, including the GoAnywhere, integrate.io, MSP360, Sysax and Rebex guides and the UpdraftPlus documentation. Where they agreed with the RFCs, we kept the point. Where they focused on enterprise file transfer, we asked how the same fact plays out for a WordPress site on cPanel or a VPS.
The product details come from our own published pages. We haven't quoted any customer numbers, because BackupYourSite is a young product and we'd rather show you how it works than invent statistics about it.
A setup checklist you can run today
If you've read this far and want to act on it, here's the order we'd go in.
- Log in to your hosting panel and look for "SSH Access" or "SSH Keys". If it exists, you have the option that matters.
- Test a real shell login, not just an SFTP client. If
ssh user@hostgives you a prompt, you have full SSH. If it disconnects straight away but an SFTP client works, you're on an SFTP-only account. - Generate an ed25519 key pair and import the public key. On cPanel, remember to click "Authorize".
- Turn off password login for SSH if your host lets you. On a VPS, that's
PasswordAuthentication noinsshd_config. - Pick a backup method that dumps the database properly. Either an outside-in SSH service, or a cron job or plugin that creates the SQL file before anything is transferred.
- Check where the copy ends up. If it's on the same server, or the same host's storage, it isn't off-site.
- Do one test restore within 7 days of setting it up. A backup you've never restored is a guess.
Want the SSH route without wiring it together yourself? Look at how BackupYourSite runs a nightly backup over SSH, from the first connection test to the verified restore.
Frequently Asked Questions
Is SFTP the same as FTPS?
No. SFTP is a file transfer protocol that runs inside an SSH connection, normally on port 22. FTPS is classic FTP with TLS encryption added, using port 21 (explicit) or 990 (implicit) plus separate data ports. They share no code, and a client for one can't talk to a server that only speaks the other.
Which port does SFTP use, and which does FTPS use?
SFTP uses a single SSH port, 22 by default, though some hosts move it to 2222 or another number. Explicit FTPS starts on port 21 and upgrades with AUTH TLS. Implicit FTPS uses port 990. Both FTPS types also need a range of passive data ports open on the server's firewall.
Can I back up a WordPress database over SFTP alone?
Not with the file transfer part on its own. SFTP moves files, and a live database has to be exported with a tool like mysqldump first. If you have full SSH access, the same connection that carries SFTP can run that dump remotely. On an SFTP-only account with no shell, a plugin or cron job has to create the SQL file first.
Is FTP safe for website backups?
No. Plain FTP sends your login and every file unencrypted. A website backup contains wp-config.php, database passwords and user data, so anyone on the network path could read it. Use SFTP if your host offers SSH, or FTPS if it doesn't.
Does my cPanel host support SFTP?
Most cPanel hosts support SFTP through SSH, but some keep SSH turned off until you ask. Look for Security → SSH Access in cPanel. If it's there, import an ed25519 public key and click Authorize. If it's missing, ask your host to enable SSH for your account.
Should I use a password or a key for SFTP backups?
Use a key. An ed25519 key pair means no reusable password crosses the network at login, and you can revoke access by deleting one line from authorized_keys. Passwords work, but they have to be stored by your backup tool and are often shared with your hosting login.