keepcalculator

06 Numbers and Powers

FTP Setup with Your Web Hosting Account

Card No. 06·67342 · Updated · Standard formula, shown below

Setting up FTP with your web hosting account means connecting your computer to your server so you can upload, download, and manage website files directly. You enter your hostname, username, and password into an FTP client, and you get a view of your server’s file system that you can drag and drop files into. This guide walks you through the process, from finding your credentials to troubleshooting common connection errors.

What Is FTP and Why Use It?

FTP (File Transfer Protocol) is a standard network protocol used to transfer files between a client (your computer) and a server (your web host). It has been around since the early days of the internet and remains a reliable way to manage website files, especially when you need to upload many files at once, edit configuration files, or access directories that a web-based file manager hides.

Most web hosting control panels (like cPanel, Plesk, or DirectAdmin) include a built-in file manager, but FTP is often faster and more flexible for bulk operations. It also lets you use a desktop client with features like queuing, resuming interrupted transfers, and editing files directly on the server.

What You Need Before You Start

Before you can connect, gather these three pieces of information from your hosting provider:

  • Hostname (FTP server address) – Usually something like ftp.yourdomain.com or ftp.yourhostingprovider.com. Some hosts use an IP address instead.
  • Username – Often the same as your cPanel username or a dedicated FTP account you create.
  • Password – The password for that FTP account.

If you haven’t created a dedicated FTP account yet, log into your hosting control panel and look for an “FTP Accounts” section. There you can create a new account, set a folder it can access (like public_html), and choose a password. Some hosts automatically create an FTP account with your main cPanel credentials.

You also need an FTP client. Popular free options include FileZilla, Cyberduck, and WinSCP. Most are available for Windows, macOS, and Linux.

Step-by-Step FTP Setup

Once you have your credentials and a client installed, the setup is straightforward:

  1. Open your FTP client. In FileZilla, the “Site Manager” (Ctrl+S or Cmd+S) lets you save multiple connections.
  2. Enter the hostname. In the “Host” field, type your FTP server address. Leave the port as 21 (the default for FTP) unless your host specifies a different one.
  3. Select the protocol. Choose “FTP – File Transfer Protocol” or “SFTP – SSH File Transfer Protocol” if your host supports it (more on that later).
  4. Enter your username and password. In FileZilla, you can set “Logon Type” to “Normal” to save them.
  5. Click “Connect.” The client will attempt to connect and, if successful, show the server’s directories in the right panel.
  6. Navigate to your web root. For most shared hosting, that’s public_html or www. Upload files by dragging them from the left (local) panel to the right (remote) panel.

If you get a certificate warning on first connect (common with SFTP), it’s normal – verify the fingerprint with your host and accept it.

Choosing Between FTP and SFTP

Standard FTP sends your username and password in plain text, which means anyone on the same network could intercept them. SFTP (SSH File Transfer Protocol) encrypts the connection, making it much more secure. Many hosts now offer both, and you should use SFTP whenever possible.

To use SFTP, you typically use the same hostname and port 22 (instead of 21). Some hosts require you to enable SSH access in your control panel first. If your host only offers FTP, consider using a VPN or at least changing your password regularly.

FTPS (FTP over SSL/TLS) is another encrypted option, but it’s less common and can be tricky with firewalls. SFTP is generally easier to set up and more widely supported.

Common FTP Connection Problems

Even with correct credentials, you might run into issues. Here are the most frequent ones and how to fix them:

  • “Connection refused” or “Connection timed out” – The server may be down, or a firewall is blocking the port. Try a different network, or check if your host uses a non-standard port.
  • “530 Login incorrect” – Double-check your username and password. Remember that some hosts require the full email address as the username, or the username might be case-sensitive.
  • “425 Can’t open data connection” – This is often a passive mode issue. In FileZilla, go to Edit > Settings > Connection > FTP and set “Passive” mode (the default). If that doesn’t work, try switching to “Active” mode.
  • “Host key verification failed” (SFTP) – The server’s key changed, possibly because you’re connecting to a different server. Remove the old key from your client’s known hosts file, or contact your host.
  • Files upload but don’t appear on your website – You’re probably uploading to the wrong directory. Ensure you’re in public_html (or the correct subfolder) and not the home directory.

If none of these help, check your hosting provider’s status page or support documentation. Many hosts have a help article listing their FTP server address and any specific settings.

Security Best Practices

FTP is an old protocol, and security should be a priority. Follow these practices to keep your site safe:

  • Use SFTP or FTPS instead of plain FTP whenever your host supports it.
  • Create a dedicated FTP account with a strong password, and restrict it to the directory it needs.
  • Change your FTP password regularly, especially if you’ve used the same one elsewhere.
  • Disable FTP access when you don’t need it, or set your host to block FTP after a certain number of failed attempts.
  • Use a VPN if you’re on public Wi-Fi, even with SFTP – it adds an extra layer.

Also, be cautious when using online FTP clients or browser-based uploaders; they may not encrypt your connection. Stick to a reputable desktop client.

Alternatives to FTP

FTP isn’t the only way to manage files on your server. Depending on your needs, you might consider:

  • Web-based file managers – Built into cPanel and other control panels. Good for quick edits but slow for many files.
  • SSH (Secure Shell) – Gives you a command-line interface to the server. Powerful for advanced users but requires learning commands.
  • Git deployment – If you’re a developer, you can push code to your server via Git. Many hosts support this for static sites or apps.
  • Cloud storage sync – Some hosts integrate with Dropbox or Google Drive, letting you sync files automatically.
  • WebDAV – An extension of HTTP that allows file management over a web server. It’s often used with WordPress or cloud services.

For most simple website owners, FTP (or SFTP) remains the most direct and flexible method. But if you’re doing frequent deployments, Git might be more efficient.

Frequently Asked Questions

What is the default FTP port?

The default port for FTP is 21. For SFTP, it’s 22. Your host might use a different port for security reasons – check your welcome email or control panel.

Can I use FTP with WordPress?

Yes, many WordPress users use FTP to upload themes, plugins, or to edit files like wp-config.php. However, you can also use the WordPress admin’s built-in plugin/theme uploader, which uses FTP if your server requires it.

Why do I get “Permission denied” when uploading?

This usually means the folder you’re uploading to doesn’t have write permission for your FTP user. You may need to change the folder’s permissions (CHMOD) to 755 or 775, or contact your host if it’s a system folder.

How do I find my FTP hostname?

Check your hosting welcome email, or log into your control panel and look for “FTP Details” or “FTP Accounts.” Often it’s ftp.yourdomain.com or ftp.yourhost.com.

Is FTP safe for transferring sensitive files?

Plain FTP is not safe because it sends data unencrypted. Use SFTP or FTPS for any sensitive information. If your host only offers FTP, consider compressing and encrypting files with a tool like GPG before uploading.

Can I use FTP from my phone?

Yes, there are FTP client apps for Android and iOS, like FileZilla (mobile version) or Solid Explorer. They work the same way but with a touch interface.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →