FTP 无法在任何 FTP 客户端上运行,甚至无法使用 Mozilla 或 Chrome

FTP not working on any FTP client not even with Mozilla or Chrome

我正在使用 macbook pro os x 10.10.3。我是一名开发人员,我经常使用 ftp。我对 mac os 是多么陌生。它工作正常,但突然 ftp 停止为我的 mac 上所有 ftp 客户端的任何服务器工作,即使 ftp://ftp.mozilla.org/ 也是如此。我使用 netbeans 并使用其基于 most 原生 java 的客户端。我尝试使用 firebug、filezille、firefox、chrome 和 mac os 本机查找器的客户端。我也尝试使用终端,响应是:

Tousifs-MBP:~ tousifosman$ ftp -v ftp://ftp.mozilla.org/

Trying 63.245.215.56...

Connected to ftp.mozilla.org.

421 Service not available, remote server has closed connection.

ftp: Can't connect or login to host `ftp.mozilla.org'

但是我能够从我的 windows 平台连接到所有服务器。

您和显示该症状的服务器之间很可能存在 NAT 防火墙。 (NAT 防火墙将整个网络隐藏在单个 IP 号码之后)。

有关更详细的说明,请参阅 http://slacksite.com/other/ftp.html

我认为您应该使用

查看谁在使用 ftp 端口
lsof -n -i4TCP:$PORT | grep LISTEN

然后杀死正在使用该端口的服务,如果它是 ftp 它应该是 21 如果它的 sftp 它应该是 22

在此处阅读有关 mac os 上侦听端口的更多信息 Who is listening on a given TCP port on Mac OS X?

希望对您有所帮助