Skip to content
Free website migration on every plan, done by our team.Learn more ›
Security

FTP vs SFTP: which should you use to upload files?

The difference between FTP, FTPS and SFTP, why plain FTP is unsafe, which ports they use and how to connect securely with a client such as FileZilla.

Short answer: Use SFTP. Plain FTP sends your password and files unencrypted, so anyone on the network path can read them. SFTP encrypts everything over SSH, usually on port 22. If SFTP isn't available, use FTPS (FTP with TLS) instead of plain FTP.

The three options

ProtocolEncryptedUsual portVerdict
FTPNo21Avoid
FTPSYes (TLS)21 or 990Fine
SFTPYes (SSH)22Best

How to connect with SFTP

  1. Install an FTP client such as FileZilla, Cyberduck or WinSCP.
  2. Enter your server address, SSH username and password or key, and port 22 (or the port your host gives you).
  3. Choose SFTP as the protocol.
  4. Upload your files to the website folder, usually public_html.

Don't need a client?

cPanel's File Manager uploads and edits files in your browser over HTTPS, which is already encrypted. For a few files, it's often the quickest option.

Good habits

  • Create separate FTP accounts for each designer or developer, limited to the folders they need.
  • Delete accounts when a project ends.
  • Never save passwords in plain-text files.

See also how to use SSH and website security basics.

Frequently asked questions

Why does my FTP client warn about an insecure connection?

You're connecting with plain FTP. Switch the protocol to SFTP or "FTP over TLS".

Is SFTP slower?

Not noticeably for website files.

Can I use SFTP on shared hosting?

Often, yes, if SSH access is enabled on your account. Ask support if you're unsure.

Ready when you are

Host it where it performs

NVMe speed, offshore privacy and a written SLA — live in minutes on AuroxHost.