Ошибка при использовании lftp
Fatal error: Certificate verification: certificate common name doesn't match requested host name
Решение.
echo "set ssl:verify-certificate no" >> ~/.lftp/rc
Или можно заходить так:
lftp -c 'set ftps:initial-prot ""; set ftp:ssl-force true; set ftp:ssl-protect-data true; set ssl:verify-certificate no; open' -u -u $login,$password $host