Hello, I have a problem that seems strange to me because I cannot connect to FTP using linux commands, nor can I connect using PHP, but it works normally from Windows with FileZilla.
1.- Since php connects correctly with the user data, it correctly activates passive mode and then does not show the files, giving the following error:
Warning: ftp_nlist(): php_connect_nonb() failed: Operation now in progress (115).
2.- From the linux commands:
ftp -p test.test.com 21
Connected to test.test.com
220 Welcome! Please note that all activity is logged.
Name (test.test.com:root): test
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (xxx,xxx,xxx,176,47,67).
ftp: connect: Connection refused.
Hello, I had this problem but I had not paid attention to it. Since yesterday I have wanted to solve it and I still can’t, for this example I rented a vps server from hetzner (ubuntu 22.04) and made a new, clean installation with the following command:
sudo bash hst-install.sh --apache no --phpfpm yes --multiphp no --vsftpd yes --proftpd no --named yes --mysql yes --mysql-classic no --postgresql no --exim no - -dovecot no --sieve no --clamav no --spamassassin no --iptables yes --fail2ban yes --quota no --api yes --interactive yes --with-debs no --port ‘8083’ --hostname ‘test.test.com’ --email '[email protected] --password ‘asdaseregeasd’ --lang ‘en’
It seems like a firewall problem but the IP addresses are on the white list of both servers, the default installation has everything related to the correct functioning of FTP in passive mode active. So I don’t understand why it could be blocking me. Because from Filezilla everything works fine.
I have to try using proftpd instead of vsftpd and see if something is different.