question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fatal error: Host key verification failed.

See original GitHub issue

Hi, I am confused about this error, can u spare some time to help me?

const FTPS = require('ftps')
const ftps = new FTPS({
	host: '192.168.xx.xx',
	username: 'xx',
	password: 'xx',
	protocol: 'sftp',
	port: 22,
})

ftps.cd('/export/wxsq/resource/fd/h5/for-fonts-server').addFile(__dirname + '/aa.css').exec(console.log);

Error:

null { error: 'cd: Fatal error: Host key verification failed.\r\nput: /Users/ruanjiawei/Desktop/ftptest/aa.css: Fatal error: Host key verification failed.\r\n',
  data: '' }

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

5reactions
ufoncommented, Sep 21, 2018

set ‘autoConfirm: true’ in config. that’s helped me

0reactions
verilscommented, Jan 31, 2018

I use Windows7 for now, and run the terminal as admin.

I mean, when I input yes, though it gave me a hint like that, but it made no effect, I can still login into server.

I just tried ssh again and input no, and got Host key verification fail finally. Now I see, maybe running my script the low level functions answered a no automatically for me?And it just need a retry?😃 That’s all I guess.

Read more comments on GitHub >

github_iconTop Results From Across the Web

LFTP: how to fix the "Fatal error: Host key verification failed" error
It could happen that trying to connect to a server using the sftp protocol with LFTP, you receive the error "Fatal error: Host...
Read more >
How to fix the error “host key verification failed” - The Geek Diary
This indicates some environment of the SSH server has changed since last time you connected to it, especially the public key and the...
Read more >
LFTP "Fatal error: Host key verification failed" error
The cause of the problem is the missing RSA key fingerprint in the list of known hosts. To fix it, it's enough to...
Read more >
3 ways to fix Host key verification failed in ssh - howtouselinux
If you receive the error message “Host key verification failed”, it means that the key stored for the host you're trying to connect...
Read more >
SSH connection problem with "Host key verification failed ...
"Host key verification failed" means that the host key of the remote host was changed. SSH stores the host keys of the remote...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found