ConsulHosting
VPS HostingVirtual Private Servers for hosting online infrastructure.Managed VPS HostingManaged VPS Hosting for websites with DirectAdmin, cPanel or Plesk.
Web HostingWeb hosting for hobbyists up to medium-sized businesses.Domain NamesRegister a new domain or transfer your existing one to ConsulHosting.Reseller HostingWhite-label reseller hosting to resell web hosting services.
Minecraft HostingAffordable, high-quality Minecraft Server Hosting for Java & Bedrock.VPS HostingVirtual Private Servers for hosting online infrastructure.Web HostingWeb hosting for hobbyists up to medium-sized businesses.
About ConsulHostingDiscover our core values and what ConsulHosting is committed to.Knowledge baseLook for answers to your questions in the knowledge base.ContactContact us via live chat, email or a support ticket.
Log in
KnowledgebaseWeb HostingHow to Upload Your Website Files Securely Using SFTP

Table of Contents

  1. Creating an FTP account
  2. Connecting through SFTP
  3. Uploading your website
  4. Checking your website

How to Upload Your Website Files Securely Using SFTP

Published on July 24, 2026

SFTP (SSH File Transfer Protocol) allows you to securely upload your website files from your computer to your web hosting. To do this, you first create an FTP account in DirectAdmin. You then use the account details to connect through FileZilla.

Creating an FTP account

  1. Log in to DirectAdmin.
  2. Use the domain selector at the top of the page to make sure the correct domain is selected.
  3. Under Account Manager, open the FTP Management page.
  4. Click Create FTP Account.
  5. Enter a username under FTP Username. For example, enter website to create the FTP account [email protected].
  6. Enter a strong and unique password or let DirectAdmin generate one.
  7. Select Domain. This restricts the FTP account to the files belonging to the selected domain.
  8. Click Create and wait for DirectAdmin to confirm that the FTP account has been created.
  9. Save the username and password. You will need these details to connect through FileZilla.

Connecting through SFTP

  1. Download and install FileZilla Client if it is not already installed on your computer.
  2. Open FileZilla.
  3. Enter the following details in the Quickconnect bar at the top:
  • Under Host, enter sftp://web.consulhosting.com.
  • Under Username, enter the complete username of the FTP account you created, such as [email protected].
  • Under Password, enter the password of the FTP account.
  • Under Port, enter 22.
  1. Click Quickconnect.
  2. Are you connecting to the server for the first time? FileZilla will display a warning about an unknown host key. Make sure the server address is correct and accept the warning to continue.

Once connected, FileZilla displays the files on your computer on the left. The files and folders belonging to your domain are shown on the right.

Note Include sftp:// before the server address. This ensures that FileZilla uses SFTP instead of a regular FTP connection.

Uploading your website

Note SFTP only transfers files. If your website uses a database, you must export and import it separately.
  1. On the left side of FileZilla, open the folder on your computer containing the website files.
  2. On the right side, open the public_html folder.
  3. Delete the default index.html file and cgi-bin folder.
  4. Select all the files and folders belonging to your website on the left.
  5. Drag the selected files to the public_html folder on the right. Alternatively, right-click the selection and choose Upload.
  6. When prompted, choose whether existing files may be overwritten.
  7. Wait until the transfer queue has been processed completely.
  8. At the bottom of FileZilla, check whether any files are listed under Failed transfers. If necessary, try uploading these files again.
Note Upload the contents of the folder containing your website files directly to public_html. Do not place the entire parent folder inside public_html. Your website’s main file, usually index.html or index.php, must be located directly in this folder.

Checking your website

After uploading the files, open your domain in a browser. Do you still see an old version of the website or the default page? Open the website in a private browsing window or clear your browser cache.

If you experience problems, also check the following:

  1. Make sure the website files are located in the public_html folder.
  2. Make sure index.html or index.php is located directly in public_html.
  3. Make sure all files were transferred successfully and FileZilla does not show any failed transfers.
  4. Make sure your domain points to the IP address of your hosting package through its DNS settings.
  5. Does your website use a database? Make sure it has been imported separately and that the database details in your website’s configuration file are correct.

Was this article helpful?

ConsulHosting logo wide

ConsulHosting

ContactKnowledge baseAccountAbout UsStatusAbuse report

Services

VPS HostingWeb HostingMinecraft HostingDomainsReseller HostingManaged VPS Hosting

© 2020-2026 ConsulHosting B.V.•Prices are excluding VAT unless stated otherwise

Terms of ServicePrivacyService Level Agreement