Unable to connect to Pure-FTPD

Discussion in 'General' started by Cracklefish, Oct 28, 2019.

  1. Cracklefish

    Cracklefish Member

    FileZilla gives an error:
    Status: Connection attempt failed with "ECONNREFUSED - Connection refused by server".
    Error: Could not connect to server​
    systemctl gives:
    ([email protected]?) [ERROR] TLS [/etc/ssl/private/pure-ftpd.pem](317): error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch​
    Presumably the latest cert renewal has gone wrong. The last renewal was 16 Oct. I think this was the first renewal since the server was rebuilt with Debian 10. I don't think I have had any reason to use FTP since then. Plain FTP works OK when I disable TLS.
    How can I recover from this?
     
  2. Steini86

    Steini86 Active Member

    Have you tried renewing the certificate and restarting pure-ftpd? You have to renew pem and key file. Seems only key file was renewed and now they don't match.

    Anyway: Latest version of filezilla seems to have some problems with pure-ftpd. Can you use a modern protocol instead? SFTP?

    Edit: To update pem file use:
    cat /etc/letsencrypt/live/mydomain.com/privkey.pem /etc/letsencrypt/live/mydomain.com/fullchain.pem > /etc/ssl/private/pure-ftpd.pem
     
    Last edited: Oct 28, 2019
  3. Cracklefish

    Cracklefish Member

    That fixed it, thank you.
    I've checked the installation against Ahrasis's tutorial and everything seems ok.
    I'll have to see what happens on Dec 16 when the certs renew.
    Filezill has SFTP, is that not good?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    SFTP is not FTP, its SSH and provided by sshd and not pure-ftpd, so you need an ssh user to use it and not an FTP user.
     

Share This Page