連接 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

是否有我可以使用的基本工作conf 檔案?

答案1

抱歉在防火牆中開啟了錯誤的連接埠!

相關內容