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!

Pure-FTPD cannot connect w. TLS/SSL

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

  1. ronaldst

    ronaldst Well-Known Member

    Joined:
    Feb 22, 2016
    Messages:
    75
    Likes Received:
    10
    Trophy Points:
    8
    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 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 :)

    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ronaldst

    ronaldst Well-Known Member

    Joined:
    Feb 22, 2016
    Messages:
    75
    Likes Received:
    10
    Trophy Points:
    8
    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 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:
    Could you let us know the ticket number so we can update this thread with the outcome?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. ronaldst

    ronaldst Well-Known Member

    Joined:
    Feb 22, 2016
    Messages:
    75
    Likes Received:
    10
    Trophy Points:
    8
    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 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:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    kawasakai likes this.
  7. durangod

    durangod Well-Known Member

    Joined:
    May 12, 2012
    Messages:
    441
    Likes Received:
    27
    Trophy Points:
    78
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. durangod

    durangod Well-Known Member

    Joined:
    May 12, 2012
    Messages:
    441
    Likes Received:
    27
    Trophy Points:
    78
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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:
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. durangod

    durangod Well-Known Member

    Joined:
    May 12, 2012
    Messages:
    441
    Likes Received:
    27
    Trophy Points:
    78
    cPanel Access Level:
    Root Administrator
    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 :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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