“500非法PORT命令”使用命令行ftp

有没有人想出了如何使用ubuntu在命令行上将文件ftp下载到EC2 AMI?

我能够连接到ftp.drupal.org(我试图dowmload一个Drupal模块),然后我甚至不能执行一个简单的“LS”,更不用说“得到”。

我只是得到可怕的“500非法端口命令”

Linux命令行ftp默认使用活动模式FTP。 尝试使用pass命令切换到被动模式:

 me@ip-10-abc:~$ ftp ftp.drupal.org Name (ftp.drupal.org:me): anonymous 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> dir 500 Illegal PORT command. ftp: bind: Address already in use ftp> pass Passive mode on. ftp> dir 227 Entering Passive Mode (140,211,166,134,86,192). 150 Here comes the directory listing. lrwxrwxrwx 1 0 0 19 Apr 11 2009 debian -> ./pub/debian/debian lrwxrwxrwx 1 0 0 20 Apr 11 2009 debian-cd -> ./pub/debian-cdimage lrwxrwxrwx 1 0 0 20 Apr 11 2009 debian-cdimage -> ./pub/debian-cdimage drwxr-xr-x 6 0 0 4096 Nov 20 16:38 pub -rw-r--r-- 1 0 0 819 Feb 03 2009 welcome.msg 226 Directory send OK.