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.

Pure-FTPD cannot connect w. TLS/SSL

Discussion in 'General Discussion' started by ronaldst, Feb 22, 2016.

  1. ronaldst

    ronaldst Member

    Joined:
    Feb 22, 2016
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Norway
    cPanel Access Level:
    Root Administrator
    I have recently been getting problems connecting by TLS/SSL. It used to work earlier and am not sure what broke it. I have tried resetting/changing SSL Certificates but this did not solve the problem.

    FileZilla log shows this and then everything stop/halt. I am connecting other FTP servers with TLS/SSL just fine with the same client.

    Code:
    Status:   Resolving address of ftp.mydomain.com
    Status:   Connecting to 104.XXX.XXX.XXX:21...
    Status:   Connection established, waiting for welcome message...
    Status:   Initializing TLS...
    I tried restarting pure-ftpd in WHM and this reveals the following message
    ...
    Feb 22 23:14:47 host pure-ftpd[20248]: (?@?) [DEBUG] Couldn't load the DH parameters file /etc/ssl/private/pure-ftpd-dhparams.pem
    pureftpd restarted successfully.

    This VPS runs 2 domains. For informational value I'll add that the domain WHM runs on have a wildcard SSL installed. I've asked WHM to use this SSL Cert. in "
    Manage Service SSL Certificates". WHM/cPanel works fine with it, no errors. The second domain which is the main website, also got a (different) wildcard ssl installed which seem to be working just fine.

    I have tried connecting to the FTP by the main domain, main ip, second hosted domain etc. All resulting in the same error.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Please browse to "WHM Home » Service Configuration » FTP Server Configuration", and set "Broken Clients Compatibility" to "Yes" in order to see if this addresses the problem.

    Thank you.
     
  3. ronaldst

    ronaldst Member

    Joined:
    Feb 22, 2016
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Norway
    cPanel Access Level:
    Root Administrator
    I'm afraid not. I've scratched my eyes out trying to figure this out. Have submitted a support ticket and one of the cPanel members are having a look at it.

    Status: Resolving address of ftp.mydomain.com
    Status: Connecting to 104.XXX.XXX.XXX: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
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  5. ronaldst

    ronaldst Member

    Joined:
    Feb 22, 2016
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Norway
    cPanel Access Level:
    Root Administrator
    This problem is now solved. I am not sure I know the exact details but the very helpful cPanel tech told me he fixed missing dh params file and restarted pure-ftpd.




    Ticked ID 7472203
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I am happy to see the issue is now resolved. To update, the following commands were ran to address the issue:

    Code:
    openssl dhparam -out /etc/ssl/private/pure-ftpd-dhparams.pem 2048
    /scripts/restartsrv_pureftpd
    Thank you.
     
  7. durangod

    durangod Well-Known Member

    Joined:
    May 12, 2012
    Messages:
    251
    Likes Received:
    10
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    I just tried running the command line command and when i restarted pure ftpd i got this

    this user is a reseller and also on the wheel and is /bin/false

    after i restarted it again that message was not there.
     
  8. durangod

    durangod Well-Known Member

    Joined:
    May 12, 2012
    Messages:
    251
    Likes Received:
    10
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    Edited the pure ftpd config file, pam auth did not work said unknown authentication, but unix authentication got me logged in but i am nowhere directory wise, i am at / and there is nothing there but 4 strange files, no root directory no nothing, cant go anywhere.
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you provide some more information on how you changed the FTP configuration file? Ensure you follow the steps at:

    FTP FAQ - Documentation - cPanel Documentation

    Thanks!
     
  10. durangod

    durangod Well-Known Member

    Joined:
    May 12, 2012
    Messages:
    251
    Likes Received:
    10
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    It was wiped yesterday sorry, but i do remember at first i uncommented pam, then i put it back and uncommented unix. Ill have to find the webpage i looked at for this in order to remember more, sorry, yesterday was a bad day :)
     
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Let us know if the issue persists, and ensure to follow the guide in the link referenced on my last response when modifying the FTP configuration.

    Thank you.
     
Loading...

Share This Page