Skip to content
Hosting2 min read

What is FTP?

Short answer

FTP (File Transfer Protocol) moves files between your computer and a server, and is used to upload website files with apps such as FileZilla. Its main weakness is that plain FTP sends your username, password and files unencrypted, which is why SFTP or FTPS is preferred today.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. How it works
  2. FTP, FTPS and SFTP
  3. Practical example: connecting with FileZilla
  4. Common problems
  5. On ArabyHost

FTP dates from the early 1970s, long before network security was a priority. It’s client-server: an app on your computer logs in to an FTP server with a username and password, and you drag and drop files between the two sides.

How it works

FTP uses two separate connections:

  • A control connection on port 21 for commands such as logging in and changing folders.
  • A data connection for the files and directory listings themselves.
Mode Who opens the data connection Note
Active The server connects to your computer Often fails behind routers and firewalls
Passive Your computer connects to a port the server chooses The usual mode today

FTP, FTPS and SFTP

Protocol Encryption Usual port
FTP None 21
FTPS TLS on top of FTP 21 (explicit) or 990 (implicit)
SFTP Over SSH; a completely different protocol 22

Practical example: connecting with FileZilla

  1. Host: the server name or ftp.example.com.
  2. Username: the full FTP username, often in the form [email protected].
  3. Port: 21, and choose “Require explicit FTP over TLS” in the site settings if the server supports it.
  4. Open public_html and upload your files there.

Common problems

  • 530 Login authentication failed: wrong username or password, or the username is missing its domain part.
  • Failed to retrieve directory listing: usually active mode or a firewall; switch to passive mode.
  • Corrupted files after upload: set the transfer type to Binary or Auto; ASCII mode rewrites line endings and breaks images and archives.
  • 403 after uploading: check file permissions: 644 for files, 755 for folders.
  • Connection drops while uploading a big folder: lower the number of simultaneous connections in the client settings, or upload one archive and extract it on the server.

On ArabyHost

We recommend avoiding unencrypted FTP. To upload a whole site, pack it into a ZIP, upload it in File Manager and extract it (see uploading an HTML site), or deploy straight from GitHub with cPanel’s Git Version Control. On AI/Developer plans you can use SFTP over SSH, jailed inside CageFS.

FAQ

Is FTP secure?

Plain FTP is not: it sends your password and files as clear text that can be captured on the network. Use FTPS or SFTP instead.

Which free FTP clients are there?

Common free clients are FileZilla on Windows, macOS and Linux, WinSCP on Windows, and Cyberduck on macOS. All of them also support FTPS and SFTP.

What's the difference between FTP and File Manager?

File Manager runs in your browser inside the control panel and needs no software, which suits quick edits. FTP and SFTP clients are better for moving many files or syncing folders.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.