cyx
cyx

Reputation: 23

unable to access the public_html folder using ftp client

I'm confused why I can't access the public_html folder on my server using Filezilla or WinSCP. The result is either Access denied (WinSCP) or Critical Error, Could not connect to server (FZ). I created my own ftp account, I can access the Cpanel using the hosting, i create mysql acct as well..

Any help?

Upvotes: 0

Views: 3927

Answers (3)

Mr.T
Mr.T

Reputation: 1

There are many reasons leading to the "critical error" when trying to access. I faced this issue with both Filezilla and WinSCP. In my case:

  • I checked the ftp configuration provided by the server (protocol, host name, port, etc..) -> No
  • I checked that user name and password were correct -> No
  • Eventually, I discovered that for security reasons, my hosting provider had restricted by default the ftp access to ENABLED IPs only! -> That was the root cause!

You should go to your admin panel and look for the option "restrict ftp access" (or something similar), and enable your IP or remove restrictions at all. NOTE: For security reasons, the setting only lasts 24 hours, so next time you will definitely have to repeat the operation!

Please find attached the screenshot of my case.

Section of admin panel related to ftp restrictions

Upvotes: 0

Udit
Udit

Reputation: 307

While creating the ftp account please, set the Directory path name to public_html to see the project files.

Upvotes: 0

Danny A
Danny A

Reputation: 1

I think you created the ftp user with a private home directory . You should create it and make sure that the website home directory is its home diertory too which is public_html

Upvotes: 0

Related Questions