无法在同一台机器上连接到 FTPS

无法在同一台机器上连接到 FTPS

我需要创建 FTPS 服务器以进行代码测试。我在 IIS 的 990 端口上执行了此操作,生成了自签名证书并尝试通过 WinSCP 在同一台机器上进行连接(所有程序都在本地托管)。我使用我的机器 IP、用户名、990 端口号创建了新会话,选择了 FTP 协议、隐式加密 TLS/SSL 并输入了我的测试密码。

当我尝试登录时,我收到“TLS 连接已建立,正在等待欢迎消息”的消息,并出现密码提示。输入测试密码后,我只收到“访问被拒绝”的消息,没有其他消息。

当我尝试在 filezilla 中执行相同操作时,仅反复收到“正在连接到服务器 [myIp]:990...已连接,等待身份验证与服务器的连接已关闭。尝试在 5 秒后重新连接”。

我的机器的操作系统是 Windows 10。有人知道发生了什么吗?这是我登录尝试后的日志文件:

`. 2019-06-17 17:24:59.256 --------------------------------------------------------------------------
. 2019-06-17 17:24:59.256 WinSCP Wersja 5.15.1 (Build 9407) (OS 10.0.18362 - Windows 10 Enterprise)
. 2019-06-17 17:24:59.256 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2019-06-17 17:24:59.256 Log level: Normal
. 2019-06-17 17:24:59.256 Local account: XXXXXX
. 2019-06-17 17:24:59.256 Working directory: C:\Program Files (x86)\WinSCP
. 2019-06-17 17:24:59.256 Process ID: 11024
. 2019-06-17 17:24:59.257 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe" 
. 2019-06-17 17:24:59.257 Time zone: Current: GMT+2, Standard: GMT+1 (Środkowoeuropejski czas stand.), DST: GMT+2 (Środkowoeuropejski czas letni), DST Start: 31.03.2019, DST End: 27.10.2019
. 2019-06-17 17:24:59.257 Login time: poniedziałek, 17 czerwiec 2019 17:24:59
. 2019-06-17 17:24:59.257 --------------------------------------------------------------------------
. 2019-06-17 17:24:59.257 Session name: [email protected] (Site)
. 2019-06-17 17:24:59.257 Host name: xx.xx.xx.xxx (Port: 990)
. 2019-06-17 17:24:59.257 User name: user (Password: No, Key file: No, Passphrase: No)
. 2019-06-17 17:24:59.257 Transfer Protocol: FTP
. 2019-06-17 17:24:59.257 Ping type: Dummy, Ping interval: 30 sec; Timeout: 15 sec
. 2019-06-17 17:24:59.257 Disable Nagle: No
. 2019-06-17 17:24:59.257 Proxy: None
. 2019-06-17 17:24:59.257 Send buffer: 262144
. 2019-06-17 17:24:59.257 UTF: Auto
. 2019-06-17 17:24:59.257 FTPS: Implicit TLS/SSL [Client certificate: No]
. 2019-06-17 17:24:59.257 FTP: Passive: Yes [Force IP: Auto]; MLSD: Auto [List all: Auto]; HOST: Auto
. 2019-06-17 17:24:59.257 Session reuse: Yes
. 2019-06-17 17:24:59.257 TLS/SSL versions: TLSv1.0-TLSv1.2
. 2019-06-17 17:24:59.257 Local directory: default, Remote directory: C:\ftpstest, Update: Yes, Cache: Yes
. 2019-06-17 17:24:59.257 Cache directory changes: Yes, Permanent: Yes
. 2019-06-17 17:24:59.257 Recycle bin: Delete to: No, Overwritten to: No, Bin path: 
. 2019-06-17 17:24:59.257 Timezone offset: 0h 0m
. 2019-06-17 17:24:59.257 --------------------------------------------------------------------------
. 2019-06-17 17:24:59.321 Połączanie do xxx.xxx.xx.xxx:990...
. 2019-06-17 17:24:59.321 Połączono z xxx.xxx.xx.xxx:990, negocjowanie połączenia TLS...
. 2019-06-17 17:24:59.321 Verifying certificate for "" with fingerprint 7e:ea:df:4b:d7:47:0e:92:b9:37:b6:a0:05:03:3e:89:90:86:50:a8 and 20 failures
. 2019-06-17 17:24:59.321 Certificate for "" matches cached fingerprint and failures
. 2019-06-17 17:24:59.321 Using TLSv1.2, cipher TLSv1/SSLv3: AES256-GCM-SHA384, 2048 bit RSA, AES256-GCM-SHA384       TLSv1.2 Kx=RSA      Au=RSA  Enc=AESGCM(256) Mac=AEAD
. 2019-06-17 17:24:59.342 Połączenie TLS nawiązane. Czekam na wiadomość powitalną...
< 2019-06-17 17:24:59.342 220 Microsoft FTP Service
> 2019-06-17 17:24:59.342 USER user
< 2019-06-17 17:24:59.342 331 Password required
> 2019-06-17 17:25:03.247 PASS ***
< 2019-06-17 17:25:03.584 530-User cannot log in.
< 2019-06-17 17:25:03.584  Win32 error:   
< 2019-06-17 17:25:03.584  Error details: An error occurred during the authentication process.
< 2019-06-17 17:25:03.584 530 End
. 2019-06-17 17:25:03.584 Połączenie nie powiodło się.
. 2019-06-17 17:25:03.606 Password prompt (last login attempt failed)`

相关内容