I currently have my UCSC hub over a ftp sever of my workstation, but now I want to host this hub on a EC2 server. The problem is that I can't allow the anonymous access to the EC2 ftp server.
Here is my current vsftpd.conf:
listen=YES
local_enable=NO
anonymous_enable=YES
write_enable=NO
anon_root=/var/ftp
pasv_min_port=14000 #Allowed on my security group
pasv_max_port=14050
pasv_enable=YES
port_enable=YES
download_enable=YES
pasv_address=$MY.ELASTIC.IP
listen_port=21
no_anon_password=YES
My current iptables state is:
$iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state NEW,RELATED,ESTABLISHED
When I try to access through FileZilla, this error appears:
Status: Connecting to $MY.ELASTIC.IP...
Status: Connection established, waiting for welcome message...
Response: 220 (vsFTPd 3.0.2)
Command: USER anonymous
Response: 230 Login successful.
Command: OPTS UTF8 ON
Response: 200 Always in UTF8 mode.
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/"
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PASV
Error: Connection closed by server
Error: Failed to retrieve directory listing
I don't have too much experience with ftp servers and I don't even know if allowing anonymous access to the ftp is necessary make my hub readable by the UCSC server. So anything you know about this may be useful to me.
Thanks for your time!
why not just host it under a public webserver, that would be a lot less hassle
Do you think that mout a publicweb server in a EC2 is easier than mout a public FTP?
of course, for HTTP you just need to start a webserver and point it at a directory
FTP is a very tricky protocol, it has multiple modes: such as active and passive and the server and client needs to negotiate a new port at which they reconnect. Many things can go wrong with that.
Since a week that I can't solve this ftp problem, so I think I will take your advice... thanks!
You were right. I'm currently have a webserver hosting my hub, and was very easy to mount. The UCSC's engineers also told me that probably perform even better since http only has to open 1 tcp connection instead of 2 (ftp).