Azure虚拟机的FTP问题

我正在尝试在Server2012的Azure虚拟机上运行一个可用的FTP脚本。

所有的防火墙都closures了这个testing。 Port20 / 21是一个开放的端点。

OPEN ftp.domain.co.uk user password cd current binary hash prompt n quote pasv MGET *.* QUIT 

响应:

 ftp> OPEN ftp.domain.co.uk Connected to ftp.domain.co.uk. 220---------- Welcome to Pure-FTPd [privsep] [TLS] ---------- 220-You are user number 2 of 50 allowed. 220-Local time is now 15:15. Server port: 21. 220-This is a private system - No anonymous login 220 You will be disconnected after 3 minutes of inactivity. User (ftp.domain.co.uk:(none)): 331 User xxxxxxx OK. Password required 230-User xxxxxxxxx has group access to: ftpgroup 230-OK. Current directory is / 230-All usage is logged for security and statistical analysis purposes. 230 Do not exceed one download set per 10 minute interval. ftp> cd current 250 OK. Current directory is /current ftp> binary hash 200 TYPE is now 8-bit binary ftp> prompt n Interactive mode Off . ftp> quote pasv 227 Entering Passive Mode (85,17,xx,xxx,197,86) ftp> MGET *.* I won't open a connection to 10.140.x.xx (only to 168.63.xxx.xxx) 200 TYPE is now 8-bit binary Cannot find list of remote files. ftp> QUIT 221-Goodbye. You uploaded 0 and downloaded 0 kbytes. 221 Logout. 

正如你所看到的,在MGET命令中有一个问题。

我已经尝试了PORT xx,xx,xxx,xxx,xx,xx的主动命令,但是在FTP客户端的那一行之后,我得到了一条无效的命令。

Filezilla通过端口21连接好。

我似乎Windows FTP不正确地做被动的FTP,所以我最终编写我自己的FTP程序在C#强制被动模式。 这可以。