Apollo Editor
Windows 10 & 11 Buy now · $69.95
Publishing

FTP vs SFTP vs FTPS: Which One Should You Use to Publish Your Website?

The difference between FTP, FTPS and SFTP explained simply: security, ports, what hosts support, and which to choose when publishing a site.

Updated 4 minute read The Apollo Editor team

FTP, FTPS and SFTP all move files between your computer and a web server, but only FTPS and SFTP encrypt the connection. Plain FTP sends your password and files as readable text. FTPS is FTP with TLS encryption added, and SFTP is a different protocol that runs over SSH, usually on port 22. For publishing a website, use SFTP if your host offers it, FTPS if it does not, and plain FTP only when there is no other choice.

This guide explains how each one works, the ports they use, the practical differences when you publish a site, and how to choose.

FTP: the original

FTP (File Transfer Protocol) has been around since the early days of the internet. It is simple and almost every host supports it. Its big weakness is that nothing is encrypted. Your username, password and every file you upload travel as plain text, so anyone who can see the network traffic between you and the server, such as someone on the same public Wi-Fi, could read them.

FTP also uses two connections: one for commands (normally port 21) and a separate one for the data. That second connection is why FTP sometimes fails behind firewalls and routers, and why FTP programs offer a "passive mode" setting, which is usually the one to use.

FTPS: FTP with encryption added

FTPS is the same FTP protocol wrapped in TLS, the encryption used by https websites. It keeps the way FTP works, including the separate data connection, but encrypts both your login and your files. The server proves its identity with a certificate, much like a secure website.

There are two styles:

  • Explicit FTPS connects on the normal FTP port (21) and then switches to encryption. This is the more common style today. Some programs call it "FTP over TLS" or "FTPES".
  • Implicit FTPS is encrypted from the first moment and normally uses port 990. It is older and less common.

If your FTP program offers "require explicit FTP over TLS", choose it. If the connection then fails, your host may not support FTPS, or may need a different setting.

SFTP: file transfer over SSH

Despite the similar name, SFTP is not FTP at all. It is the SSH File Transfer Protocol, part of SSH, the secure system administrators use to log in to servers. Everything goes over one encrypted connection, normally on port 22. Because there is only one connection, SFTP tends to work more smoothly through firewalls than FTP or FTPS.

The first time you connect, your program shows the server's key fingerprint and asks whether to trust it. After that, it warns you if the key changes, which helps protect against connecting to the wrong server. Some hosts also let you log in with an SSH key instead of a password.

Side by side

FTPFTPSSFTP
Encrypts password and filesNoYes (TLS)Yes (SSH)
Usual port2121 (explicit) or 990 (implicit)22
ConnectionsSeparate command and dataSeparate command and dataOne
Firewall friendlinessCan be trickyCan be trickyUsually simple
Server identity checkNoneTLS certificateSSH host key
Based onFTPFTP plus TLSSSH

Your host may use different port numbers from the usual ones above. Always use the port your host gives you.

Which one should you use?

For publishing a website, choose in this order:

  1. SFTP, if your hosting plan includes it. It is encrypted, uses one connection and is widely supported by FTP programs.
  2. FTPS, if your host offers it but not SFTP. It gives you encryption with the familiar FTP setup.
  3. FTP, only if neither is available. If you must use it, avoid public Wi-Fi, use a strong password that you do not use anywhere else, and ask your host about adding a secure option.

All three give you the same result on the server: your files in your site's folder. The choice is about keeping your login and files private on the way there, and about which one connects reliably from your network.

Finding out what your host supports

Look in your hosting control panel for a section named FTP, SFTP, SSH or file access. It usually lists the host name, port and username for each method, and may let you turn on SSH access for SFTP. Some plans include SFTP only on certain tiers. If the details are not clear, your host's help pages or support team can tell you which protocols and ports to use.

Common connection problems

  • Connection times out: check the host name and port. Using port 21 for SFTP, or 22 for FTP, is a common mix-up.
  • Login works but folder listing fails: with FTP or FTPS, switch to passive mode.
  • Certificate warning with FTPS: some shared hosts use a certificate for their own server name rather than your domain. Check with your host which host name to connect to.
  • Host key changed warning with SFTP: this can mean the server was rebuilt, but confirm with your host before accepting the new key.

The easier way: FTP, FTPS and SFTP publishing in Apollo Editor

Apollo Editor is a Windows desktop HTML editor with optional publishing built in that supports all three protocols, so you can use whichever your host offers without a separate program.

  • FTP, FTPS and SFTP, plus local folder and ZIP export.
  • Saved server profiles with secure password storage.
  • A connection test, so you can check your settings before uploading.
  • Changed file detection, a publishing log and transfer verification.

Publishing is optional, and your site stays as plain HTML that you can upload any other way. For the full upload process, read how to upload your website to a web host, and if your updates do not appear afterwards, see website changes not showing after upload.

Frequently asked questions

Is plain FTP safe to use?

Plain FTP sends your password and files unencrypted, so anyone on the network path could read them. Use SFTP or FTPS when your host offers them.

What port does SFTP use?

SFTP normally uses port 22, the same as SSH. Some hosts use a different port, so check your hosting details.

Are SFTP and FTPS the same thing?

No. SFTP runs over SSH, while FTPS is FTP with TLS encryption added. Both encrypt the connection.

Get three guides like this every month, plus software update notices.Subscribe →