微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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
 <--- 220-Welcome to the Yahoo! Web Hosting FTP server
 <--- 220-Need help? Get all details at:
 <--- 220-http://help.yahoo.com/help/us/webhosting/gftp/
 <--- 220-
 <--- 220-No anonymous logins accepted.
 <--- 220-Yahoo!
 <--- 220-Local time is Now 15:30. Server port: 21.
 <--- 220-This is a private system - No anonymous login
 <--- 220 You will be disconnected after 5 minutes of inactivity.
 ---> FEAT
 <--- 211-Extensions supported:
 <---  EPRT
 <---  IDLE
 <---  MDTM
 <---  SIZE
 <---  MFMT
 <---  REST STREAM
 <---  MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
 <---  MLSD
 <---  XDBG
 <---  AUTH TLS
 <---  PBSZ
 <---  PROT
 <---  TVFS
 <---  ESTA
 <---  PASV
 <---  EPSV
 <---  SPSV
 <---  ESTP
 <--- 211 End.
 ---> OPTS MLST type;size;modify;UNIX.mode;UNIX.uid;UNIX.gid;
 <--- 200  MLST OPTS type;size;sizd;modify;UNIX.mode;UNIX.uid;UNIX.gid;unique;
 ---> USER theuser
 <--- 421 Sorry,cleartext sessions are not accepted on this server.
 Please reconnect using SSL/TLS security mechanisms.

lftp :~> set ssl-allow false

您已明确将ssl-allow设置为false.但如果lftp尝试使用SSL,则必须如此.

原文地址:https://www.jb51.cc/ubuntu/347448.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐