FileZilla Errors: "The server's certificate is unknown" & ECONNREFUSED
You might receive the following error when trying to connect to your Web Hosting (cPanel) account with FileZilla: The server's certificate is unknown. Please carefully examine the certificate to make sure the server can be trusted.
Proceeding past this error will then generate this error: Error: The data connection could not be established: ECONNREFUSED - Connection refused by server
Solutions
To resolve this error, you must either connect via sFTP or disable TLS in FileZilla's Site Manager.
Connecting with sFTP
This solution applies only to Web Hosting (cPanel) accounts (What type of hosting account do I have?). You must connect with the primary FTP user.
- Enable SSH on your account (cPanel).
- In FileZilla, use the following information to connect:
Field What to enter... Host sftp://your hosting account's IP address (cPanel) Username & Password Your hosting account's username and password Port 22
Disabling TLS in the Site Manager
This solution works for any FTP user.
- In FileZilla, from the File menu, select Site Manager.
- Click New Site.
- Complete the following fields, and then click Connect:
Field What to do... Host Enter your hosting account's IP address (cPanel). Protocol Select FTP - File Transfer Protocol. Encryption Select Use plain FTP. Logon Type Select Normal. User & Password Enter your hosting account's username and password.