linux 终端登录ssl ftp,ubuntu – 如何让lftp从命令行使用SSL / TLS安全机制?

我正在尝试登录到ftps站点.我尝试在命令行中输入登录信息(并将设置参数放在〜/ .lftprc中,然后打开lftp会话并使用lftp作业控制语句键入这些参数.无论如何,我一直遇到同样的障碍:

421 Sorry,cleartext sessions are not accepted on this server.

Please reconnect using SSL/TLS security mechanisms.

我得到了以下参数最远,但不断得到上面的错误.

如何让lftp从命令行使用SSL / TLS安全机制?

目标是使用bash编写对此ftps站点的访问脚本(不使用expect编程).

lftp

lftp :~> set ssl-allow false

lftp :~> set passive-mode yes

lftp :~> open ftp.abc.com

lftp ftp.abc.com:~> login theuser

Password:

lftp theuser@ftp.abc.com:~> cd

`cd' at 0 [Delaying before reconnect: 26]

CTRL-C

lftp theuser@ftp.abc.com:~> debug

lftp theuser@ftp.abc.com:~> cd

---- Connecting to ftp.abc.com (XX.XXX.XX.XX) port 21

---> FEAT

---> OPTS MLST type;size;modify;UNIX.mode;UNIX.uid;UNIX.gid;

---> USER theuser

Please reconnect using SSL/TLS security mechanisms.

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值