How do I get lftp to use SSL/TLS security mechanism from the command line?

后端 未结 8 2277
深忆病人
深忆病人 2021-02-15 13:11

I\'m trying to log into an ftps site. I\'ve tried giving the login creds at the command line (and putting set parameters in ~/.lftprc, the

8条回答
  •  深忆病人
    2021-02-15 13:59

    Setting ftp:ssl-allow true didn't work for me.

    By typing set:

    lftp :~> set
    

    I noticed this:

    set ftp:ssl-allow true
    set ftp:ssl-allow/XXX.XXX.XXX.XXX no
    

    with XXX.XXX.XXX.XXX being the server, I was logging into.

    So the final set of commands I needed was:

    lftp :~> set ftp:ssl-allow true
    lftp :~> set ftp:ssl-allow/XXX.XXX.XXX.XXX true
    lftp :~> set ssl:verify-certificate no
    

提交回复
热议问题