IIS 8.5 上的 FTPS 命令错误:LIST

Jen*_*ens 0 iis ftp ftps windows-server-2012-r2 iis-8.5

我正在尝试在我的服务器上配置基于 SSL 的 FTP。我在 IIS 中添加了一个 FTP 站点,然后按照向导设置绑定和证书。但是,当我尝试使用 FileZilla 连接到服务器时,连接被服务器拒绝。我还注意到没有出现欢迎消息。我还注意到服务器发送的回复带有不可路由的地址。我真的不知道如何从这里继续,因为设置对我来说似乎没问题。

日志:

Status: Resolving address of jensgm.com
Status: Connecting to 213.153.1.168:990...
Status: Connection established, initializing TLS...
Status: Verifying certificate...
Status: TLS connection established, waiting for welcome message...
Status: Connected
Status: Retrieving directory listing...
Status: Server sent passive reply with unroutable address. Using server address instead.
Command:    LIST
Response:   150 Opening BINARY mode data connection.
Error:  The data connection could not be established: ECONNREFUSED - Connection refused by server
Error:  Connection timed out after 20 seconds of inactivity
Error:  Failed to retrieve directory listing
Run Code Online (Sandbox Code Playgroud)

日志文件说:

'long time stanp' JENSGM\jensgm 192.168.1.2 21 LIST - 550 1236 15 1cf4a073-6f69-481f-8083-4ec4debfc810 /

'long time stanp' JENSGM\jensgm 192.168.1.2 21 ControlChannelClosed - - 1236 0 1cf4a073-6f69-481f-8083-4ec4debfc810 -
Run Code Online (Sandbox Code Playgroud)

kri*_*sFR 5

看来您正在使用被动模式。

被动模式使用从 1024 到 65534 的 TCP 端口作为数据通道。

确保没有防火墙阻止此端口范围。

否则,切换到活动模式以仅使用 TCP/20 作为数据通道。

编辑 :

此外,FTPS 可以以两种不同的模式运行:隐式或显式。

  • 显式将使用标准端口(对于主动模式):TCP/21 和 TCP/20
  • 隐式将使用 TCP/990 作为命令,使用 TCP/989 作为数据通道

http://en.wikipedia.org/wiki/FTPS