用lftp连接到一个ftp服务器,执行ls命令结果一直Making data connection。
google一下都说执行set ftp:ssl-allow no,但是实测无效。
上lftp官网看faq,里面也提到了这个:
Q: lftp hangs in "Making data connection" state. A: Try "set ftp:prefer-epsv no". Probably a router on the path to the server does not recognize the EPSV command.
执行了一下,顺利解决。
csonezp@gmail.com