lftp Fatal error: Host key verification failed

When i connect to a remote SFTP server using lftp, i get following error

The error is “Fatal error: Host key verification failed.”

To fix this, just SSH into this server with command

See lftp

lftp Fatal error: Certificate verification: Not trusted

When i connect to an FTP server, i get following error

To fix this, run

You can add this to /etc/lftp.conf to make this permanant

Add

See lftp

lftp

Download files

Upload files

lftp Errors

Connect to a server

Disable SSL

Enable Active FTP mode