我正在运行 CentOS 6.7,并尝试使用 vsftpd 成功建立 FTP 连接。请给我指明正确的方向!
Status: Connection established, waiting for welcome message...
Response: 220 (vsFTPd 2.2.2)
Command: AUTH TLS
Response: 234 Proceed with negotiation.
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Command: USER testuser
Response: 530 Permission denied.
Error: Could not connect to server
我尝试检查/var/logs/messages
,/var/logs/xferlog
但日志是空的。我还检查了home
本地用户的目录权限,并确保该用户列在用户列表中,而不是在拒绝列表中
配置:
local_enable=YES
pasv_address=108.41.178.133
pasv_min_port=40000
pasv_max_port=40010
pasv_promiscuous=YES
pasv_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
xferlog_file=/var/log/xferlog
xferlog_std_format=YES
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
listen=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
rsa_cert_file=/etc/ssl/private/vsftpd.pem
ssl_tlsv1=YES
ssl_sslv2=YES
ssl_sslv3=YES
require_ssl_reuse=NO
ssl_ciphers=HIGH
rsa_private_key_file=/etc/ssl/private/vsftpd.pem
ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=NO
force_local_logins_ssl=YES
dirlist_enable=YES
download_enable=YES
答案1
答案2
[530 错误是由于为 ftp 创建的用户造成的]
通常,新的 ftp 用户将具有快照中提到的用户描述,当您执行:cat /etc/passwd
你会发现类似这样的:
vsftpd:x:1003:1004:,,,:/home/vsftpd:/bin/bash
“这三个居中的逗号是罪魁祸首。因此,将它们删除。”