

Edit (Preferences) > Settings > Connection > SFTP, Click "Add key file”.Just check:Ĭonnect to Amazon EC2 file directory using FileZilla and SFTP, Video Tutorial This fixed the problem for me, and it was not a problem to run these steps after configuring vsFTPd.I've created a video tutorial for this. This is how to fix the problem if you are affected as well: sudo apt-get remove vsftpd I do not know ifd this is a general bug in Ubuntu, or only affects Ubuntu on Amazon. I ran into a bug where I could not authenticate into FTP even though I was sure I was using the correct credentials. SERVER_FQDN is the fully qualified hostname of the server that remote clients can find, such as Step 5: Ubuntu vsFTPd authentication bug workaround If you do not have a fixed IP address and would like to user a hostname instead, append these lines: pasv_addr_resolve=YES Passive connections require using a routable IP address from the remote host.ĭo you have a fixed IP address on your server? If so configure by appending these lines: pasv_addr_resolve=NO In the example below, I use port 40000 to 40100. To enabl e passive mode, edit the nf config file again: sudo vi /etc/nfĪppend the following lines: pasv_enable=YES You set aside a range of ports to use for passive FTP connections. Usually you want to enable passive mode on an FTP server. Uncomment the following line: chroot_local_user=YESĪnd add this line at the end of the file: allow_writeable_chroot=YES Step 4: Enable Passive Mode To do this, edit the vsftd config file again: sudo vi /etc/nf This usually a recommended security practice. Uncomment the following lines: write_enable=YESĮnabling chroot keeps FTP users confined to their hone directory tree.

Sudo apt-get install vsftpd Step 2: Configure vsFTPd sudo vi /etc/nf

So here is what you need to do: Step 1: Install vsFTPd sudo apt-get update This is tested on Ubuntu 14.04 on an Amazon EC2 instance, but it will probably work on other versions as well. When I tried to do this seemingly simple task, I could not find any one guide on the web which told me everything I needed to do, so I write it myself I also ran into a bug in Ubuntu that at least shows up on Amazon: Authentication fails every time even though you are 100% sure you have the right credentials.
