
我已經使用 vsftps 在 ubuntu 上設定了 FTPS 伺服器
以下是 FTP 配置:sudo vim /etc/vsftpd.conf
listen=NO
listen_ipv6=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=NO
# pasv_address=13.55.13.221
idle_session_timeout=1200
data_connection_timeout=3600
accept_timeout=500
connect_timeout=5000
allow_writeable_chroot=YES
chroot_local_user=YES
user_sub_token=$USER
local_root=/home/$USER/uploads
pasv_enable=YES
pasv_min_port=40000
pasv_max_port=50000
userlist_enable=YES
userlist_file=/etc/vsftpd.userlist
userlist_deny=NO
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/private/vsftpd.pem
rsa_private_key_file=/etc/ssl/private/vsftpd.pem
ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=YES
force_local_logins_ssl=YES
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
require_ssl_reuse=NO
ssl_ciphers=HIGH
utf8_filesystem=YES
我使用 Core FTP LE 測試伺服器,我有三個選項:
這是我收到的錯誤:
SSL/TLS 錯誤 - 0、SSL 錯誤 - 1、錯誤:00000001:lib(0):func(0):reason(1) Winsock 錯誤 10060(連線嘗試失敗,因為連線方在一段時間後未正確回應)時間,或因連線的主機未能回應而建立的連線失敗)SSL 連線未建立。
知道如何讓 FTPS 選項發揮作用嗎?
答案1
問題是 Core FTP LE 使用隱式 FTPS 身份驗證,而我的伺服器配置為使用明確身份驗證。
隱式身份驗證是已棄用,但是如果您想使用它,您需要在您的 中添加以下內容/etc/vsftpd.conf
:
implicit_ssl=YES
listen_port=990 # or use 21 if you prefer