Topic "Host key not found in cache."

Author Message
Ahsan

Guest


Hi I am running SFTP as window service.It automatically downloads a file after a specific interval.But I am a getting an error. When I connect to remote then it gives me an error, "The server host key is not found in cache." Here is complete error.
Quote:

from Login: There was an error to download the fwis.xml file.
winscp> option batch abort
batch abort
winscp> option confirm off
confirm off
winscp> open SFTP://User@Hostname:Port -privatekey="Public Key"
Searching for host...
Connecting to host...
Authenticating...
The server's host key was not found in the cache. You have no guarantee that the server is the computer you think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 1024 b6:9f:b1:08:c2:a0:80:9b:34:b9:ba:3c:e2:6c:53:eb
If you trust this host, press Yes. To connect without adding host key to the cache, press No. To abandon the connection press Cancel.
Continue connecting and add host key to the cache?
(Y)es, (N)o, C(a)ncel, (C)opy Key: Cancel
Host key wasn't verified!
Authentication failed.


Please Suggest me what should I do now?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Please read documentation
http://winscp.net/eng/docs/scripting#hostkey
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License