连接到 ftp 时出错:接收失败:对端重置连接

连接到 ftp 时出错:接收失败:对端重置连接

我正在尝试连接运行 vsftpd 的服务器:

$ sudo systemctl status vsftpd
● vsftpd.service - vsftpd FTP server
     Loaded: loaded (/lib/systemd/system/vsftpd.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2022-11-24 10:48:47 UTC; 2s ago
    Process: 6135 ExecStartPre=/bin/mkdir -p /var/run/vsftpd/empty (code=exited, status=0/SUCCESS)
   Main PID: 6136 (vsftpd)
      Tasks: 1 (limit: 21449)
     Memory: 804.0K
        CPU: 4ms
     CGroup: /system.slice/vsftpd.service
             └─6136 /usr/sbin/vsftpd /etc/vsftpd.conf

我当前的配置/etc/vsftpd/vsftpd.conf如下:

$ cat /etc/vsftpd.conf
listen=YES
listen_ipv6=NO
anonymous_enable=NO
local_enable=YES
write_enable=YES
force_dot_files=YES
local_umask=022
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=NO
utf8_filesystem=YES
require_ssl_reuse=NO
#rsa_cert_file=/etc/ssl/private/vsftpd.pem
#rsa_private_key_file=/etc/ssl/private/vsftpd.pem
ssl_enable=NO
pam_service_name=vsftpd
secure_chroot_dir=/var/run/vsftpd/empty

#ascii_upload_enable=YES
#ascii_download_enable=YES
#ftpd_banner=Welcome to blah FTP service.

#############################################
#Uncomment these lines to enable FXP support#
#############################################
#pasv_promiscuous=YES
#port_promiscuous=YES

###################
#Set a custom port#
###################
#listen_port=

当我连接时, 我收到错误消息:sudo curlftpfs [email protected] /path/to/dirError connecting to ftp: Recv failure: Connection reset by peer

是否有一个我可以使用的基本工作配置文件?

答案1

抱歉,防火墙打开了错误的端口!!

相关内容