Fix :: FTP Error at FileZilla FTP Client : "Could not connect to server"

Problem Statement

Getting an error after initialization of TLS in FileZilla

Error Message

FTP: Could not connect to server

Error Description

Status: Resolving address of 
Status: Connecting to XX.XX.XX.XX:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Error: Connection timed out after 20 seconds of inactivity
Error: Could not connect to server
Status: Waiting to retry...
Status: Resolving address of
Status: Connecting to XX.XX.XX.XX:21...
Status: Connection established, waiting for welcome message...
Response: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Response: 220-You are user number 7 of 50 allowed.
Response: 220-Local time is now 08:35. Server port: 21.
Response: 220-This is a private system - No anonymous login
Response: 220 You will be disconnected after 15 minutes of inactivity.
Command: AUTH TLS
Response: 234 AUTH TLS OK.
Status: Initializing TLS...
Error: Connection timed out after 20 seconds of inactivity
Error: Could not connect to server

Solution

  • Usually, this error occurs when you have incorrect saved certificates in trustedcerts.xml at your local system. To fix this issue, you will need to remove/rename this certificate file from your system.

  • The file trustedcerts.xml contains certificates for secure websites that you have told your FileZilla client to trust connections to. This file should not be confused with any certificates you have in use if you use FileZilla as a server as well.

  • In order to remove a saved certificate from Windows System, navigate to %APPDATA%\FileZilla and delete OR rename the trustedcerts.xml file.

  • In order to remove a saved certificate from Linux System, navigate to ~/.config/filezilla/ and delete or rename trustedcerts.xml file.

  • Once you remove or rename this file, you will get the prompt to accept the certificate while you attempt to connect to FTP server through FileZilla. On getting the prompt of certificate, select "Always trust this certificate" and then accept it.


→ Any other trouble with FTP. Check Here for more help on FTP.

→ Receiving ERROR 330 ( ERR_CONTENT_DECODING_FAILED) while connecting FTP? Please refer to fix FTP error 330 for more details.

→ Receiving too many connection error in FTP? Please refer to fix FTP too many connection for more details.

→ Receiving 530 user cann't login, home directory inaccssible error in FTP? Please refer to fix FTP 530 error for more details.

Related Articles

What is Entry Process Limit in Linux Shared Hosting?

An Entry Process is the number of PHP scripts you can run at a time. Our Shared Hosting and...

How to Install Magento Manually?

Do you want to install Magento 2.4.2 on Centos with cPanel? Please refer to install Magento 2.4.2...

What is the path of home directory in Windows and Linux Shared Hosting plans?

For Linux users, the path of home directory is /home/username/public_html.For Windows users, the...

How do I change document root folder to some sub-folder using an .htaccess file?

By default, the web-contents of your website will be loaded from the public_html directory. If...

How to Reduce Spam in cPanel Hosting?

Nowadays Spam has become major annoyance with day to day email communications. You may have seen...

  • 0 Users Found This Useful

Was this answer helpful?