lftp ssl_lftp禁用SSL

lftp ssl

lftp some times stalls with message “Making data connection” when “ls” the directory after logged in the ftp site. The message may appear like this:

登录FTP站点后,当“ ls”目录时,lftp有时会停顿并显示消息“正在建立数据连接”。 该消息可能如下所示:

< --- 227 Entering Passive Mode (xx,xx,xx,xx,xx,xx)
---- Connecting data socket to (yy,yy,yy,yy) port zz
`ls' at 0 [Making data connection...]

But some client such as filezilla may works on the same site.

但是某些客户端(例如filezilla)可能在同一站点上工作。

Most of the the reason is that the FTP server configuration didn’t have assigned passive ports nor are they open on the firewall.

主要原因是FTP 服务器配置没有分配被动端口,也没有在防火墙上打开它们。

I find two solutions to this problem:

我发现此问题的两种解决方案:

1) Disable ssl when using lftp
This is the easy solution because usually we can not change the server’s configuration. We can do this by simply add one line:

1)使用lftp时禁用SSL
这是简单的解决方案,因为通常我们无法更改服务器的配置。 我们只需添加一行即可:

set ftp:ssl-allow false

to ~/.lftprc.
My .lftprc configuration files can be found here: https://github.com/zma/config_files

到〜/ .lftprc。
我的.lftprc配置文件可以在这里找到: https : //github.com/zma/config_files

2) Change the configuration on the server side for a pureFTP connect
Force passive mode on server and open specific ports in server firewall.

2)在服务器端更改pureFTP连接的配置
在服务器上强制采用被动模式,并在服务器防火墙中打开特定端口。

翻译自: https://www.systutorials.com/lftp-disable-ssl/

lftp ssl

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值