I am running Ubuntu 10.10 in a Virtualbox machine, and I have been trying to set up an FTP server using vsftpd, but to no avail.
I have been following epimeteo's howto at http://ubuntuforums.org/showthread.php?t=518293, but I keep running into this same problem. Every time I try to enable SSL on the server, the entire thing breaks and I can't even restart the server any more!
Before I try to add SSL capabilities, my settings in /etc/vsftpd.conf look like this:
This works. I can use standard FTP to log in with my account user/pass.
# FTP config file /etc/vsftpd.conf
ftpd_banner=Welcome to the Netherworld FTP service.
I then append the following to the file, in an attempt to enable SSL:
I then reset the server so it will use the new settings, here is the terminal output:
# SSL settings
# Filezilla uses port 21 if you don't set any port
# in Servertype "FTPES - FTP over explicit TLS/SSL"
# Port 990 is the default used for FTPS protocol.
# Uncomment it if you want/have to use port 990.
At this point, it stops working. When I try to use Filezilla to connect to 127.0.0.1 in FTPES mode, I get the following:
$ sudo restart vsftpd
vsftpd start/running, process 3192
At first I thought perhaps I needed to tell Filezilla to use port 990 instead of 21. But this did not change the result. So I tried to uncomment the last line "listen_port=990" in the vsftp.conf. This is when I noticed a problem. I cannot reset the server:
Status: Connecting to 127.0.0.1:21...
Status: Connection attempt failed with "ECONNREFUSED - Connection refused by server".
Error: Could not connect to server
Restarting the machine does not help, so all I can think to do is completely remove and reinstall vsftpd using sudo apt-get remove --purge vsftpd and sudo apt-get install vsftpd. But while this will reset everything to the basics and let me gain access to the server it does not solve the problem. I still cannot enable SSL without the server breaking.
$ sudo restart vsftpd
restart: Unknown instance:
Thank you for sticking with me through that long winded problem description, I hope somebody can help me solve this problem, I've been trying for 3 days to get this server going!
-Edit: I managed to find out that the server was trrowing a silent error that I could read by manually running vsfptd. This pointed me to a problem in the configuration with the RSA certificate, and a quick fix and reboot later it was working