Hello all,
I have Ubuntu Server running and am trying to set up a vsftp server. I have run into difficulties. What I want to do is allow ftp login using unix user credentials. I have a user set up specifically for FTP login.
I am following the setup guide here: http://www.noob2geek.com/linux/setup...debian-ubuntu/
I have followed all the steps but when I try to connect to the FTP server I get the message:
Connection attempt failed with "ECONNREFUSED - Connection refused by server"
I don't know what I could be doing wrong and the message is not very descriptive. Here is my vsftpd.conf file in it's entirety(with comments removed)
Code:
listen=YES
#listen_ipv6=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
#anon_upload_enable=YES
#anon_mkdir_write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=NO
#chown_uploads=YES
#chown_username=whoever
#xferlog_file=/var/log/vsftpd.log
#xferlog_std_format=YES
#idle_session_timeout=600
#data_connection_timeout=120
#nopriv_user=ftpsecure
#async_abor_enable=YES
#ascii_upload_enable=YES
#ascii_download_enable=YES
#ftpd_banner=Welcome to blah FTP service.
#deny_email_enable=YES
#banned_email_file=/etc/vsftpd.banned_emails
chroot_local_user=YES
#chroot_list_enable=YES
#chroot_list_file=/etc/vsftpd.chroot_list
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/private/vsftpd.pem
userlist_file=/etc/vsftpd.userlist
userlist_enable=YES
userlist_deny=NO
The file /etc/vsftpd.userlist has one entry, which is the name of the ftp user's account.
I know the FTP account credentials are correct as I can SSH in with them. If anyone could give me a suggestion as to what I am doing incorrectly or could even offer a way to debug this issue it would be very much appreciated. Thanks!
Bookmarks