Page 1 of 1

FTP connection error on ubuntu server with vesta

Posted: Wed Aug 28, 2019 5:02 am
by mhostingfree
Perform the installation of vestacp through custom configurations:

Code: Select all

bash vst-install.sh --force --nginx yes --apache yes --phpfpm no --named yes --remi yes --vsftpd yes --proftpd no --iptables yes --fail2ban yes --quota yes --exim yes --dovecot yes --spamassassin yes --clamav yes --softaculous yes --mysql yes --postgresql yes --hostname myowndns123.net --email [email protected] --password mypassword`
I have also made the settings to have my own custom DNS with my own domain for example: myowndns123.net

Now create my FTP account for the following example domain: example.com and user FTP: admin_example and password: example

I am using FileZilla I tried the current versions even old versions.

I have tried different ways to access from: FTP - SSH FILE TRANFER PROTOCOL with port 22 and I also tried it with port 21 in the same way with: FTP - FILE TRANSFER PROTOCOL.

The data I enter are:

Code: Select all

    Server: example.com (I have also tried adding the server's fixed IP and the DNS linked domain myowndns123.net)
    User: admin_example
    Password: example
    Port: 21 (I have also used port 22)
Note: Finally I tried to change a new FTP password and also tried to create a new FTP user and password. Not to mention that the website is configured with a free SSL certificate.
This is the answer I get from FileZilla:

Code: Select all

    Status: Connecting to example.com ...
    Answer: fzSftp started
    Command: open "[email protected]" 22
    Command: Trust new host key: Yes
    Command: Pass: ****************
    Status: Connected to example.com
    Error: Connection closed by server with exitcode 1
    Error: Could not connect to server
    Status: Waiting to retry ...
    Status: Delaying connection for 1 second due to a previous failed connection attempt ...
    Status: Connecting to example.com ...
    Answer: fzSftp started
    Command: open "[email protected]" 22
    Command: Pass: ****************
    Error: Could not connect to server
    Status: Resolving the address of example.com
    Status: Connecting to 18.111.11.111:21 ...
    Status: Connection established, waiting for the welcome message ...
    Answer: 220 (vsFTPd 3.0.3)
    Command: USER admin_example
    Answer: 331 Please specify the password.
    Command: PASS ****************
    Answer: 230 Login successful.
    Command: SYST
    Answer: 215 UNIX Type: L8
    Command: FEAT
    Answer: 211-Features:
    Answer: AUTH TLS
    Answer: UTF8
    Answer: EPRT
    Answer: EPSV
    Answer: MDTM
    Answer: PASV
    Answer: PBSZ
    Answer: PROT
    Answer: REST STREAM
    Answer: SIZE
    Answer: TVFS
    Answer: 211 End
    Command: OPTS UTF8 ON
    Answer: 200 Always in UTF8 mode.
    Status: Connected
    Status: Retrieving the directory listing ...
    Command: PWD
    Answer: 257 "/" is the current directory
    Command: TYPE I
    Answer: 200 Switching to Binary mode.
    Command: PASV
    Answer: 227 Entering Passive Mode (172,11,11,11,11,50).
    Status: The server sent a passive response with a non-routable address. Using the server address instead.
    Command: LIST
    Error: Connection timed out
    Error: Error retrieving directory listing
    Status: Resolving the address of example.com
    Status: Connecting to 18.111.11.111:21 ...
    Status: Connection established, waiting for the welcome message ...
    Answer: 220 (vsFTPd 3.0.3)
    Command: AUTH TLS
    Error: Connection timed out
    Error: Could not connect to server
    Status: Waiting to retry ...
    Status: Delaying connection for 1 second due to a previous failed connection attempt ...
    Status: Resolving the address of example.com
    Status: Connecting to 18.111.11.111:21 ...
    Status: Connection established, waiting for the welcome message ...
    Answer: 220 (vsFTPd 3.0.3)
    Command: AUTH TLS
    Error: Connection timed out
    Error: Could not connect to server
    Status: Resolving the address of example.com
    Status: Connecting to 18.111.11.111:990 ...
    Error: Connection timed out
    Error: Could not connect to server
    Status: Waiting to retry ...
    Status: Resolving the address of example.com
    Status: Connecting to 18.111.11.111:990 ...
    Error: Connection timed out
    Error: Could not connect to server
Other attempts

Code: Select all

    Status: Resolving the address of example.com
    Status: Connecting to 18.111.11.111:21 ...
    Status: Connection established, waiting for the welcome message ...
    Answer: 220 (vsFTPd 3.0.3)
    Command: AUTH TLS
    Error: The connection timed out after 20 seconds of inactivity
    Error: Could not connect to server
    Status: Waiting to retry ...
    Status: Resolving the address of example.com
    Status: Connecting to 18.111.11.111:21 ...
    Status: Connection established, waiting for the welcome message ...
    Answer: 220 (vsFTPd 3.0.3)
    Command: AUTH TLS
Other attempts

Code: Select all

    Status: Connecting to example.com ...
    Status: Connected to example.com
    Error: Received unexpected end-of-file from SFTP server
    Error: Could not connect to server
    Status: Waiting to retry ...
    Status: Connecting to example.com ...
    Answer: fzSftp started, protocol_version = 8
    Command: open "[email protected]" 22
    Command: Pass: ****************
    Error: Received unexpected end-of-file from SFTP server
    Error: Could not connect to server
Please help some configurations that you must make in vestacp to be able to use FTP.

Or what am I doing wrong

Re: FTP connection error on ubuntu server with vesta

Posted: Fri Aug 30, 2019 3:13 am
by sysdop
You have a possible problem related to passive mode or local lan IP on your server. Try to configure the passive mode IP in the vsftpd.conf and restart the service.