我使用 lftp 将文件从 Cloud 9 IDE 传输到远程主机。最近,它似乎停止了工作。我已经向主人提出了这个问题,他们认为它工作正常。事实上,我可以通过 FileZilla 和一个简单的浏览器连接到 ftp 主机。我已经用 Cloud 9 提出了它,但也没有运气。
我正在从命令行使用以下命令传输文件:
lftp -e "debug; set ssl:verify-certificate no; put ./res/test.txt -o test.txt; bye" -u abcd,xyz ftp.example.com
(这set ssl:verify-certificate no
是不久前的补充,以克服突然出现的类似连接问题......我也试过没有它......结果相同)
我在 C9 中发现的是,它永远在尝试连接:
---- Connecting to ftp.example.com (xx.xxx.xx.xxx) port 21
**** Socket error (Connection timed out) - reconnecting
---- Closing control socket
---- Connecting to ftp.example.com (xx.xxx.xx.xxx) port 21
**** Socket error (Connection timed out) - reconnecting
---- Closing control socket
---- Connecting to ftp.example.com (xx.xxx.xx.xxx) port 21
可能很难提供任何帮助,但有没有人有任何想法至少可以帮助我诊断?还有其他选择吗?
谢谢。