Quickly Create an FTP Server on Your EC2 Instance
Setting up an FTP server on EC2 using VSFTPD is well-documented in general, but EC2’s security model and the Ubuntu kernel introduce two specific problems that most tutorials skip over. The base VSFTPD install will appear to work but fail in practice — once with a cryptic privilege error on startup, and once with FileZilla hanging indefinitely when trying to connect.
After crawling through scores of pages, I found a tutorial that works like a charm for the base setup. These are the two gaps it left, and how to fill them:
500 OOPS: priv_sock_get_int
Fix: add to /etc/vsftpd.conf:
seccomp_sandbox=NO
Passive mode in FileZilla
If FileZilla hangs on “Sent PASSIVE reply”, you need to configure passive port ranges in your VSFTPD config and open those ports in your EC2 security group.
With those two fixes in place, VSFTPD runs reliably on EC2 and FileZilla connects without issue.