Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

FTP accounts not working

Discussion in 'General Discussion' started by salvazo, Jul 31, 2017.

  1. salvazo

    salvazo Member

    Joined:
    May 2, 2011
    Messages:
    20
    Likes Received:
    1
    Trophy Points:
    53
    Hi, I'm trying to setup an account from FTP accounts but I always get this message from Filezilla:

    Error: The data connection could not be established: ECONNREFUSED - Connection refused by server

    If I use the SFTP protocol, the login fails.

    I've activated "Shell Access" from whm for this account also.

    Thanks!
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,582
    Likes Received:
    439
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I believe SFTP is only for the cPanel user account, not for addon FTP accounts. Be sure you're using the full account name for the login as well, example: salvao @ example.com
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. salvazo

    salvazo Member

    Joined:
    May 2, 2011
    Messages:
    20
    Likes Received:
    1
    Trophy Points:
    53
    Yes I'm using the full name. I understand the SFTP connection doesn't work with ftp addon accounts, but I'm using simple ftp and the connection is refused. I can see the connection as active from FTP connections but is dead from the ftp client. This is the log:

    Command: USER camimfacturas@---.com
    Response: 331 User camimfacturas@---.com OK. Password required
    Command: PASS ********
    Response: 230 OK. Current restricted directory is /
    Command: OPTS UTF8 ON
    Response: 200 OK, UTF-8 enabled
    Estado: Connected
    Estado: Recuperando el listado del directorio...
    Command: PWD
    Response: 257 "/" is your current location
    Command: TYPE I
    Response: 200 TYPE is now 8-bit binary
    Command: PASV
    Response: 227 Entering Passive Mode (208,167,229,23,144,206)
    Command: MLSD
    Error: The data connection could not be established: ECONNREFUSED - Connection refused by server

    Thanks!
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,582
    Likes Received:
    439
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Are you able to connect normally with the cPanel user login?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. salvazo

    salvazo Member

    Joined:
    May 2, 2011
    Messages:
    20
    Likes Received:
    1
    Trophy Points:
    53
    With the main user I only can connect by SFTP, with ftp simple I get the same error...
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,582
    Likes Received:
    439
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    979
    Likes Received:
    384
    Trophy Points:
    113
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Have you tried using an active transfer mode ?

    The "Error: The data connection could not be established: ECONNREFUSED - Connection refused by server" you are seeing seems to be connected with the switch to passive mode, and ports not being open on one or the other ends of the connection.

    There are many posts in the FileZilla forums regarding the exact error you are seeing - I am not at all convinced at the validity of some of the answers, but you might find some useful pointers :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. salvazo

    salvazo Member

    Joined:
    May 2, 2011
    Messages:
    20
    Likes Received:
    1
    Trophy Points:
    53
    Hi rpvw, with active transfer is working well but I need to work with passive transfer mode.

    I followed the instructions from infopro and works like a charm

    Then, additional ftp accounts are not working by default ?

    Thank you guys!
     
  9. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Could you expand upon your last statement regarding the additional FTP accounts working by default?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. salvazo

    salvazo Member

    Joined:
    May 2, 2011
    Messages:
    20
    Likes Received:
    1
    Trophy Points:
    53
    Hi Michael, sure. I mean additional ftp accounts are not working in passive mode by default.
     
  11. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    If you browse to "WHM Home » Service Configuration » FTP Server Configuration", and set "Broken Clients Compatibility" to "Yes", does that fix the issue?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. DeadManWalking

    DeadManWalking Well-Known Member

    Joined:
    Dec 9, 2004
    Messages:
    47
    Likes Received:
    1
    Trophy Points:
    158
    Location:
    Japan
    If anyone using PureFTP still has this error and none of the above solutions worked:
    WHM > Service Configuration > FTP Server Selection > Pure-FTPD > Save

    This will re-install the FTP server.
    This was the only thing solved the problem for me.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice