The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

FTP accounts not working

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

  1. salvazo

    salvazo Member

    Joined:
    May 2, 2011
    Messages:
    12
    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:
    15,618
    Likes Received:
    296
    Trophy Points:
    433
    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
     
  3. salvazo

    salvazo Member

    Joined:
    May 2, 2011
    Messages:
    12
    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:
    15,618
    Likes Received:
    296
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Are you able to connect normally with the cPanel user login?
     
  5. salvazo

    salvazo Member

    Joined:
    May 2, 2011
    Messages:
    12
    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:
    15,618
    Likes Received:
    296
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  7. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    260
    Likes Received:
    76
    Trophy Points:
    28
    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 :)
     
  8. salvazo

    salvazo Member

    Joined:
    May 2, 2011
    Messages:
    12
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

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

    Thank you.
     
  10. salvazo

    salvazo Member

    Joined:
    May 2, 2011
    Messages:
    12
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page