我正在尝试设置对我的 Apache 服务器的 FTP 访问,但我收到一个530 Login Incorrect错误。
我通过sudo apt-get install vsftpd.
我尝试ftp://(my ip address)与我创建的用户连接,该用户andrew属于ftp用户组。我也试过与root. 我确定密码是正确的。
理想情况下,我希望能够连接到我的/var/www/目录以通过 FTP 客户端上传文件。
这是我的vsftpd.conf文件没有注释的样子:
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
chroot_local_user=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/private/vsftpd.pem
Run Code Online (Sandbox Code Playgroud)
并附有评论:
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# …Run Code Online (Sandbox Code Playgroud)