LFTP Fatal error: Host key verification failed error
My Concurent programs which pull ftp data started failing when trying to connect to a server using the sftp protocol with LFTP, you receive the error "Fatal error: Host key verification failed".
IP: 10.10.10.1 or
Hostname : ftp.funebs122.lab
$ lftp sftp://user@10.10.10.1:22
Password:
lftp user@10.10.10.1:~> ls
ls: Fatal error: Host key verification failed
The cause of the problem is the missing RSA key fingerprint in the list of known hosts.
To fix it, it's enough to try to connect to the SFTP server using the ssh command:
$ ssh -p 22 user@10.10.10.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
bb:5d:6a:67:76:55:e0:8c:02:b1:d2:d0:e6:c0:e3:cf.
Please contact your system administrator.
Add correct host key in /home/apptgp/.ssh/known_hosts to get rid of this message.
Offending RSA key in /home/apptgp/.ssh/known_hosts:32
RSA host key for ftp.funebs122.lab has changed and you have requested strict checking.
Now you can successfully connect to the SFTP server:
$ lftp sftp://user@10.10.10.1:22
Password:
lftp user@10.10.10.1:~> ls
drwx------ user/user 4096 2022-07-31 16:41:35 .
drwx------ user/user 4096 2022-07-31 16:41:35 ..
lftp user@10.10.10.1:/> quit
Post a Comment
Post a Comment