lftp Fatal error: Host key verification failed

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

root@ok:~# lftp sftp://[email protected]:22
Password:
lftp [email protected]:~> set ftp:ssl-allow false
lftp [email protected]:~> mirror --verbose --use-pget-n=8 -c /home/okuser/www.site.com/docs /root/site-backup/
mirror: Fatal error: Host key verification failed.   
mkdir: Access failed: /root/site-backup/docs: File exists
lftp: MirrorJob.cc:242: void MirrorJob::JobFinished(Job*): Assertion `transfer_count>0' failed.
Aborted
root@ok:~#

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

To fix this, just SSH into this server with command

ssh -p 22 [email protected]

See lftp

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *