vsftpd 隐式 ftp 服务器

vsftpd 隐式 ftp 服务器

我正在尝试设置带有 ftps 连接的 ftp 服务器。我需要它来测试我的代码,该代码使用一堆使用隐式 SSL 的其他 ftp 服务器。到目前为止,我还没有设法设置它。在这个主题上找不到太多有用的信息,我遇到的另一个问题是我在 /var/log/vsftpd.log 中看不到任何错误。

服务 vsftpd 状态给我这个:

june 11 08:39:40 maks-linux-laptop systemd[1]: Starting vsftpd FTP server...
june 11 08:39:40 maks-linux-laptop systemd[1]: Started vsftpd FTP server.
june 11 08:39:40 maks-linux-laptop systemd[1]: vsftpd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
июн 11 08:39:40 maks-linux-laptop systemd[1]: vsftpd.service: Failed with result 'exit-code'.

答案发现我可以尝试通过运行 bin 文件来启动 vsftp 来查看错误,但只得到这个:

500 OOPS: run two copies of vsftpd for IPv4 and IPv6

尽管我的 vsftpd 服务此刻已经停止了。

这是我的vsftpd 配置文件文件

listen=YES
listen_port=990
listen_ipv6=YES
dual_log_enable=YES
anonymous_enable=NO
local_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_file=/var/log/vsftpd.log
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/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
ssl_enable=YES

相关内容