Getting started

FTP vs SFTP vs FTPS explained: which file transfer method should you use?

The differences between plain FTP, FTPS and SFTP, which ports and logins each uses on cPanel hosting, how they compare to File Manager and Web Disk, and which is safest.

BeginnercPanel hosting2 min read

To upload a website from your computer you need a way to transfer files to the server. The three common protocols sound alike but differ in security and in how you log in.

The three protocols

FTPFTPS (FTP over TLS)SFTP (SSH File Transfer)
EncryptionNone: password and files travel in plain textTLS encryption, like HTTPSSSH encryption
Port2121 (explicit TLS) or 99022 or a custom SSH port
Login on cPanelFTP accounts or cPanel userFTP accounts or cPanel usercPanel user with SSH access, or SSH keys
Folder restrictionPer FTP accountPer FTP accountThe whole home directory

Which to use

  • FTPS is the best default on cPanel hosting: encrypted, and it works with extra FTP accounts limited to one folder. In FileZilla choose Require explicit FTP over TLS; see connect with FileZilla.
  • SFTP is ideal if you already use SSH and keys, and for automated deploys; see SSH access and keys in cPanel.
  • Plain FTP should be avoided: anyone on the network path can read the password.

Alternatives without a client

Security tips

  • Create a separate FTP account per person and folder, and delete it when the work is done; see create FTP accounts.
  • Never save FTP passwords in a client on a shared computer.
  • Malware on a PC often steals saved FTP logins, so keep your computer clean.

Next steps

Was this guide helpful?

Still stuck?

Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.