Websites and Tech

FTP and SFTP

Also called File Transfer Protocol, Secure File Transfer Protocol

Protocols for moving files to and from a web server; one encrypts the connection and the older one does not.

Quick facts: FTP and SFTP

Category
Websites and Tech
Also called
File Transfer Protocol, Secure File Transfer Protocol
Level
Intermediate
Affects
Site security, deployment workflow, incident recovery
Where to see it
FileZilla, Cyberduck, the FTP accounts section of your hosting panel
In this article4
  1. How FTP and SFTP work
  2. Why the difference matters
  3. Where file transfer goes wrong
  4. What to do about it

How FTP and SFTP work

Both are ways of moving files between your computer and the web server: uploading a theme, downloading a copy of the site, replacing an image, or pulling a log file down to read. You connect with a client such as FileZilla using a host address, a username and a password, and the server’s directory tree appears alongside your own.

The difference is protection. FTP is the older protocol and sends its instructions, and in most configurations its credentials, as readable text across the network. SFTP performs the same operations inside an encrypted SSH connection, so anyone able to observe the traffic sees nothing usable. There is also FTPS, which wraps traditional FTP in TLS — a different route to a similar outcome.

Why the difference matters

Hosting credentials are keys to the entire site. Someone who captures them can insert redirects, publish spam pages, install a backdoor, or take the site offline. Plain FTP over café or airport wifi hands those keys to anyone patient enough to look, which is why most reputable hosts now discourage or disable it altogether.

The consequences show up in search as well as in security. Injected pages and hidden redirects are a common reason a site gets flagged as hacked, and recovering search visibility afterwards takes far longer than the transfer ever saved.

Where file transfer goes wrong

Editing production files directly is the biggest one. Uploading a changed theme file straight onto the live site leaves no record of what changed, no way back and no test. When the page breaks, recovery depends on someone remembering exactly what they did.

Shared accounts come next. One login passed between a developer, a designer and an agency cannot be revoked for one person, and nobody can tell who uploaded what. Most panels let you create separate accounts limited to a single folder, and there is no good reason not to.

The quiet one is leaving files behind. Old archives, database exports and backup folders uploaded temporarily stay on the server, often publicly reachable, sometimes for years.

What to do about it

Use SFTP, and switch plain FTP off in the hosting account if the option exists. Where the host supports keys instead of passwords, use them — that is the same mechanism described under SSH access, and it removes the password from the equation entirely.

Give every person their own account, scoped to the folder they need, and delete it when the work ends. Make changes on a staging environment first, take a backup before touching production, and remove any archive or database export as soon as the transfer has finished.

Do and do not

Do

  • Use SFTP and disable plain FTP where possible
  • Give each person a separate, folder-limited account
  • Delete uploaded archives and database exports afterwards

Do not

  • Send hosting credentials over an unencrypted connection
  • Edit live theme files without taking a backup
  • Share one transfer login across several contractors

Questions people ask about this

Is FTP safe to use?

Plain FTP is not safe on any network you do not control, because it sends its instructions and usually its credentials as readable text. Anyone observing traffic on shared wifi can capture the login to your entire website. Use SFTP, which carries the same operations inside an encrypted connection, and disable plain FTP in your hosting account where you can.

What is the difference between SFTP and FTPS?

Both encrypt file transfers, but through different mechanisms. SFTP runs over an SSH connection and uses a single port, which makes it simpler to pass through firewalls. FTPS is traditional FTP wrapped in TLS, the same family of encryption used for HTTPS. Either is acceptable; SFTP is more commonly offered and easier to configure, so it is the usual choice.

Do I need FTP if my site runs on WordPress?

For everyday work, no — themes, plugins and media are all managed inside the dashboard. You need file access when the dashboard itself is unreachable: a fatal error after a plugin update, a corrupted file, or a hacked site that has to be cleaned. Keeping working SFTP credentials for that moment is sensible, even if you rarely use them.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.