博文

目前显示的是标签为“lftp”的博文

lftp Fatal error: Certificate verification: Not trusted - Junk Food for the Brain

If you use lftp alot, occasionally you will encounter sites that just use ssl to secure transmission, but don’t actually purchase a proper SSL cert for the domain. You would get the following error message: Fatal error: Certificate verification: Not trusted If you are sure its really the intended site (No Man in the Middle Attacks!), you can temporaryly disable certificate verification by the following command at the lftp prompt: lftp > set ssl:verify-certificate no To permanently set this for lftp, you could add this to your /etc/lftp.conf or in your home directory ~/.lfptrc file.

lftp使用

命令: lftp user@site:port   这个命令可以防止密码以明文出现。   终端:   man lftp   进入lftp后   help   获得帮助   就可以看到命令列表   下面我们看一下lftp常用的命令:   ls 显示远端文件列表。 cd 切换远端目录。 get 下载远端文件。 mget 下载远端文件(可以用通配符也就是 *)。 pget 使用多个线程来下载远端文件, 预设为五个。 mirror 下载/上传/同步 整个目录。 put 上传文件。 mput 上传多个文件(支持通配符)。 mv 移动远端文件(远端文件改名)。 rm 删除远端文件。 mrm 删除多个远端文件(支持通配符)。 mkdir 建立远端目录。 rmdir 删除远端目录。 pwd 显示目前远端所在目录。 du 计算远端目录的大小 ! 执行本地 shell的命令(由于lftp 没有 lls, 故可用 !ls 来替代) lcd 切换本地目录 lpwd 显示本地目录 alias 定义别名 bookmark 设定书签。 exit 退出ftp