pure ftpd refuse connection

Discussion in 'Installation/Configuration' started by kameleon1er, Sep 13, 2020.

  1. kameleon1er

    kameleon1er Member

    Hi there,

    I continue my isp configuration with Debian 9, it seems to work, but I can't connect in ftp with pureftp and apache.

    In ispConfig, I created a site and an ftp user [prefix]name / password

    But in filezilla or in the shell, the password is refused.

    I just did a test with ftptest.net

    here is the exit;
    Code:
    Status: Resolving address of srv-b.democrasite.com
    
    Status: Connecting to ip.xx.xx.xx
    
    Warning: The entered address does not resolve to an IPv6 address.
    
    Status: Connected, waiting for welcome message...
    
    Reply: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
    
    Reply: 220-You are user number 1 of 50 allowed.
    
    Reply: 220-Local time is now 18:52. Server port: 21.
    
    Reply: 220-IPv6 connections are also welcome on this server.
    
    Reply: 220 You will be disconnected after 15 minutes of inactivity.
    
    Command: CLNT https://ftptest.net on behalf of 80.11.30.178
    
    Reply: 530 You aren't logged in
    
    Command: AUTH TLS
    
    Reply: 234 AUTH TLS OK.
    
    Status: Performing TLS handshake...
    
    Status: TLS handshake successful, verifying certificate...
    
    Status: Received 1 certificates from server.
    
    Status: cert[0]: subject='C=US,ST=France,L=Paris,O=kameleon.fr,OU=dev,CN=democrasite.com,[email protected]' issuer='C=US,ST=France,L=Paris,O=kameleon.fr,OU=dev,CN=democrasite.com,[email protected]'
    
    Command: USER prefix_user
    
    Reply: 331 User prefix_user OK. Password required
    
    Command: PASS **********
    
    Reply: 530 Login authentication failed
    
    Error: Login refused by server
    Thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Possible reasons:

    1) You installed pure-ftpd package instead of pure-ftpd-mysql. See perfect server guide for correct install instructions.
    2) You installed or reinstalled pure-ftpd-mysql after ispconfig was installed.
    3) You have a Shell and FTP user with same name.
    4) Username or password that you used for the connection is wrong.
     
  3. kameleon1er

    kameleon1er Member

    Code:
    1) You installed pure-ftpd package instead of pure-ftpd-mysql. See perfect server guide for correct install instructions.
    Code:
    2) You installed or reinstalled pure-ftpd-mysql after ispconfig was installed.
    Probably, before but after too… It didn't work !! are you trying to explain to me that if a service doesn't work or doesn't work anymore and you find out after the installation of ispConfig, you can't repair it and you have to delete everything and reinstall it?

    Code:
    3) You have a Shell and FTP user with same name.
    I dont think so, ftpUser was created from ispPanel with his his own [Prefix]

    Code:
    4) Username or password that you used for the connection is wrong.
    I dont think so too… both are in text file on my local desktop "copied an pasted" to the shell

    thanks
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    No. But if you reinstalled it, then you probably removed the whole config, so it must fail afterwards. To fix it, run an ispconfig update and choose to reconfigure services during update.
     
  5. kameleon1er

    kameleon1er Member

    Damn it! I changed the password for security, he finally logged in but he kicked me out ;
    Code:
    "500 I won't open a connection to 10.69.32.129 (only to 163.172.143.149)" 
    So I did some more digging, I don't remember seeing this setting in "perfect Debian ispConfig" but while searching I found this article:

    https://www.faqforge.com/linux/cont...ange-in-pure-ftpd-on-denian-and-ubuntu-linux/

    and added open ports?

    If it can help someone :)

    Thanks for the help

    ::Resolved::
     

Share This Page