I am trying to make vsftpd to work with the centos 7 ami from centos. After installing vsftpd I edited the config file and made these changes:
anonymous_enable=NO local_enable=YES write_enable=YES # for ftp passive mode connect_from_port_20=NO pasv_enable=YES pasv_min_port=1024 pasv_max_port=1048 # (ec2 instances public ip) pasv_address=52.xx.xx.xx
and then I started vsftpd
$ systemctl start vsftpd.service
also opened tcp port range 20-21 and port range 1024-1048 under security groups on AWS website, and set SELinux to permissive
when I try to connect with filezilla I get this error msg
Status: Connection established, waiting for welcome message... Status: Insecure server, it does not support FTP over TLS. Status: Connected Status: Retrieving directory listing... Command: PWD Response: 257 "/home/centos" Command: TYPE I Response: 200 Switching to Binary mode. Command: PASV Response: 227 Entering Passive Mode (0,0,0,0,4,7). Command: LIST Error: The data connection could not be established: WSAEADDRNOTAVAIL - Cannot assign requested address
I have searched everywhere but have not found a solution to this. Hope someone can help!
I also tried sftp over port 22 with the pem file from amazon. I was able to log in that way, but the file transfer were so insanely slow that I just gave that one up. I tried to upload phpmyadmin and it was seriously going to take 20 minutes to upload it with sftp. Any idea why it is so slow?
Would be very grateful if someone could come with suggestion.