使用命令登录不是默认端口的ftp server(Connection closed by remote host的原因)

如果登录的ftp server不是默认端口,在命令行中输入:

C:/Documents and Settings/yourname>ftp 172.28.1.1
Connected to 172.28.93.248.
Connection closed by remote host.

C:/Documents and Settings/yourname>ftp 172.28.1.1:80
Unknown host 172.28.93.248:80.
ftp> bye

C:/Documents and Settings/yourname>ftp 172.28.1.1 80

输出ftp的命令帮助

C:/Documents and Settings/yourname>ftp
ftp> open 172.28.1.1 80
Connected to 172.28.1.1.
220-FileZilla Server version 0.9.9 beta
220-written by Tim Kosse (Tim.Kosse@gmx.de)
220 Please visit http://sourceforge.net/projects/filezilla/
User (172.28.1.1:(none)): yourname
331 Password required for yourname
Password:
230 Logged on
ftp >