Introduction

This guide explains, in plain language, how to transfer your website’s files from your computer to a cPanel hosting account using FileZilla (FTP, FTPS or SFTP). You will learn how to verify or obtain access in cPanel, configure the connection in FileZilla, and upload the files to public_html. public_htmlYou will also learn how to set permissions and fix the most common errors.

Prerequisites

  • An active hosting account and access to your client area / cPanel. If you don't know how to log in, consult our article " How do I access my cPanel account? ".
  • An FTP or SFTP account (credentials provided by your host or created via cPanel → FTP Accounts). If you need to create an FTP account, follow " How to create an FTP account ".
  • FileZilla Client (desktop client) installed on your computer (Windows / macOS / Linux).
  • A recent backup of your site before making any changes (local or via JetBackup / cPanel).

Note: FTP transfers data in clear text; SFTP (SSH File Transfer Protocol) and FTPS (FTP over TLS) encrypt the connection. Prefer SFTP or FTPS if your host offers them — see also " What is FTP/SFTP? ".

Open the cPanel login from the hosting service
Open cPanel from your client area to check or create FTP/SFTP accounts.

1. Verify or create FTP / SFTP access in cPanel

  1. Log in to your client area then open cPanel (screenshot above).
  2. In cPanel, check existing FTP accounts or create one (see our guide " How to create an FTP account "). Note: hostname (domain or IP), protocol (FTP/FTPS/SFTP), port, username and password.
  3. Locate the domain’s web root (usually public_html for the main domain; an add-on domain may have a separate folder). Open the File Manager to confirm the location:
public_html folder and cPanel File Manager commands
The folder public_html is the web root: any file placed here becomes publicly accessible.

2. Configure the connection in FileZilla

  1. Open FileZilla.
  2. Open the Site Manager (File menu → Site Manager…). Click on New site and give it a recognizable name (e.g., « MonSite — SFTP »).
  3. Enter the settings:
    • Host : your domain name (e.g. exemple.com) or the server's IP address.
    • Protocol : choose SFTP – SSH File Transfer Protocol if available; otherwise FTP – File Transfer Protocol.
    • Encryption (for FTP): choose Use explicit FTP over TLS if available if your hosting provider recommends it. Avoid unencrypted FTP on public networks.
    • Port : 22 for SFTP; 21 for FTP (check with your hosting provider if a non-standard port is used).
    • Connection / authentication type : Normal (username + password) or Ask for password if you prefer to enter the password each time you connect.
  4. Click on Connect. If FileZilla displays a certificate alert (TLS/SSH), verify the fingerprint with support or accept it if it matches the expected server.

Tip: if your host requires an SSH key for SFTP, notify support. FileZilla can use a private key (or convert a key with PuTTYgen) — ask us if you're unsure of the format.

3. Upload the files

After connecting, the FileZilla interface shows your local files on the left and the server contents on the right.

  1. In the remote column (Remote site), open the web root folder (usually public_html or the add-on domain directory).
  2. Select the local files/folders (left column), then drag-and-drop them to the remote column (right) or right-click → Upload (Upload).
  3. If you are replacing a production site: proceed in stages — upload the non-critical files first, test the site, then replace the homepage (index.php / index.html).
  4. For a large number of files or large folders, it is often more reliable to upload a ZIP archive and extract it from the cPanel File Manager (avoids timeouts and speeds up the transfer):
Select File button to upload a file to public_html in cPanel
If FileZilla encounters interruptions, upload a ZIP archive and extract it in cPanel to finalize the deployment.

4. Permissions and ownership

Typical permissions (numeric values):

  • Folders: 755
  • Files: 644
Avoid 777 (major security risk). Some upload folders (WordPress) may require 775 depending on the server configuration.

In FileZilla: right-click on the remote file/folder → File permissions... and enter the numeric value (recursive option for folders).

Read, write and execute checkboxes for a file's permissions in cPanel
You can also correct permissions from the cPanel File Manager if necessary.

Note: Changing a file's owner generally requires SSH access or assistance from support if your hosting is on a shared server.

Best practices before and after transfer

  • Make a full backup before overwriting a production site (JetBackup or a local backup).
  • Prefer SFTP/FTPS over unencrypted FTP, especially on public networks.
  • Upload non-critical files first and verify that key pages load correctly (homepage, forms, cart, etc.).
  • For many small files, upload a ZIP and extract it on the server to reduce the risk of timeouts.
  • After the transfer, clear caches (site, browser, CDN) and check the error logs if a page returns a 500 error.

Limitations and special cases

  • FTP/SFTP transfers do not handle databases: export/import your databases via phpMyAdmin (see " How do I import or export my database from phpMyAdmin? ") or via backup tools.
  • If you deploy a WordPress site, consider the integrated tools (WP Toolkit / Softaculous) that automate database and file setup. See " Install WordPress on cPanel ".
  • In some environments (restricted permissions on shared hosting), you will not have permission to change file owners or execute certain commands — contact support if necessary.

Troubleshooting: common errors and fixes

Unable to connect (timeout / connection refused)

  • Check the host (domain or IP) and the port (22 for SFTP, 21 for FTP, or the port specified by your hosting provider).
  • Make sure you have selected the correct protocol (SFTP vs FTP). Using SFTP when only FTP is enabled will fail, and vice versa.
  • Enable the Passive (PASV) in FileZilla: Edit → Settings → Connection → FTP → Passive mode (many hosting providers require it).
  • Check your firewall/antivirus and router; some networks block ports 21/22.
  • If the account or domain is suspended by the hosting provider, the connection will be refused — check the status in your client area.

Error "530 Login authentication failed" / connection refused

  • Incorrect username or password: retype carefully (case-sensitive).
  • Confirm the username format: check the exact username in cPanel → FTP Accounts.
  • If necessary, recreate the FTP account in cPanel or reset the password.

Error "550 Permission denied" during upload

  • You are attempting to write to a folder where you do not have permission: verify that you are connected with the account corresponding to the domain and that you are uploading into public_html or the folder that was assigned to you.
  • Check and adjust permissions (see section above) or use the cPanel File Manager to correct ownership/permissions; contact support if a server-side intervention is required.

Slow transfers or frequent interruptions

  • Reduce the number of simultaneous transfers: FileZilla → Edit → Settings → Transfers → Limit simultaneous transfers.
  • Increase the timeout: Edit → Settings → Connection → Timeout.
  • For many small files, upload a ZIP archive and extract it on the server to avoid overloading the connections.

TLS/SSH certificate alert

  • If FileZilla displays a certificate warning on first connection, verify the fingerprint (digital fingerprint) with our support. Only accept it if you recognize the server.

Useful links

Final tip

If you encounter problems despite these checks, open a ticket with support specifying: host, port, chosen protocol (FTP/FTPS/SFTP), exact error message and time of the attempt. Never send your passwords by unencrypted email; use the support team's secure form if the technician needs access.

Documentation consulted on October 16, 2026. Tools may vary depending on your hosting.