Help us improve the AWS re:Post Knowledge Center by sharing your feedback in a brief survey. Your input can influence how we create and update our content to better support your AWS journey.
Connecting remote FTPS server from EC2 instance
0
Hello. I have a PHP script which downloads some files from my EC2 instance using cURL.
I connect to a remote FTPS server on port 990 and range port 50000-50010 is also used to download the files.
When I run the script in local or in my Plesk production server, the script runs without problems but from EC2 I only get the message "Failed to connect to aaa.bbb.ccc port 990: Connection refused".
I checked inbound and outbound rules for the security group, created new rules, allowed all traffic, tested different combinations, etc. I even created a new security group exclusively with rules for allowing inbound and outbound traffic, but it's not working.
I don't know if besides the security group rules there is something else that I have to configure. I don't know what else can I check.
Normally, when I wanted to access through SSH to my EC2 instance I only have to configure the inbound rule with my IP and that all, but with this I'm a bit lost.
Thanks in advance for your help!
I'm sorry, I'm not following your question... So your PHP script is running on EC2 and attempting to cURL to some remote server on port 990 and ports 50000-50010 to download files. This script works locally and on another production server, but not on your EC2 instance, correct? Are other sites accessible from your EC2 instance (meaning your EC2 instance can access the internet)?
I'm sorry, I'm not following your question... So your PHP script is running on EC2 and attempting to cURL to some remote server on port 990 and ports 50000-50010 to download files. This script works locally and on another production server, but not on your EC2 instance, correct? Are other sites accessible from your EC2 instance (meaning your EC2 instance can access the internet)?