I have redhat linux Azure VM server through which I am trying to get directory listing from FTP server hosted on other windows Azure VM. I could connect through FTP using my local machine and filezilla and get the directory listing, But I am getting error for both active and Passive connection through my redhat linux azure VM server while using ls command.
Active connection error : ftp: accept: Resource temporarily unavailable 425 Can't open data connection for transfer of "/" 226 ABOR command successful
Passive error: 227 Entering Passive Mode (10,1,0,10,160,87) ftp: connect: Connection timed out
It looks like more of firewall issue but what kind of setting I need to change. I have also added FTP port 21 and data connection port 20 in my inbound rules.
In my firewalld rule FTP service is listed. Even all passive connection port is also added. Also I Disabled firewalld and then tried but no success.
I need to access this FTP from my PHP page to get all the files uploaded on FTP folder.
Thanks