Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host key verification failed #132

Closed
rubenski opened this issue Mar 1, 2015 · 3 comments

Comments

Projects
None yet
4 participants
@rubenski
Copy link

commented Mar 1, 2015

Hi,

We are connecting to a URL using lftp. The IP for this URL has changed and since this happened we see the error "Fatal error: Host key verification failed" when the mget command is run.

What should we do to accept the host key again?

@lavv17

This comment has been minimized.

Copy link
Owner

commented Mar 3, 2015

Either connect to the host using plain ssh and accept the key, or "set sftp:auto-confirm yes" in lftp

@lavv17 lavv17 closed this Mar 10, 2015

@wheelq

This comment has been minimized.

Copy link

commented Feb 12, 2019

lftp -e "set sftp:auto-confirm yes;set ssl:verify-certificate no;ls -la" -p 22 fish://localhost
Results in:
ls: ls -la: Fatal error: Host key verification failed

Also tried with set ssl:verify-certificate off;set ssl:verify-certificate false; etc

@segidev

This comment has been minimized.

Copy link

commented May 19, 2019

lftp -e "set sftp:auto-confirm yes;set ssl:verify-certificate no;ls -la" -p 22 fish://localhost
Results in:
ls: ls -la: Fatal error: Host key verification failed

Also tried with set ssl:verify-certificate off;set ssl:verify-certificate false; etc

@wheelq For me it worked with lftp -c "set sftp:auto-confirm yes ; open -u $USERNAME,$PASSWORD sftp://$HOST ; mirror -e -R -p ./source dest ; quit"

So i used -c instead of -e

Probably that helps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.