Contents
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
21for 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
- Host: the server name or
ftp.example.com. - Username: the full FTP username, often in the form
[email protected]. - Port:
21, and choose “Require explicit FTP over TLS” in the site settings if the server supports it. - Open
public_htmland 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:
644for files,755for 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.