Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Porter

The server's host key was not found in the cache. You have no guarantee that the server is .

Hi Guys

I have an issues that when running in DOS all works, however via Task scheduler l get the below error as it wants the thumb print. The issue l have is that i am using a private file and the hostkey commands don't seem to work with the below.
I had;


But when i use i get teh below error
open sftp://<username>@sftp.hostname.com -privatekey=Private.ppk -hostkey="ssh-xxxxxx 256 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssh-xxxxx 256 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Error
Host key fingerprint is:
. 2019-08-20 16:09:42.873 ssh-xxxxxx 256 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
. 2019-08-20 16:09:42.874 Asking user:
. 2019-08-20 16:09:42.874 **Continue connecting to an unknown server and add its host key to a cache?**
. 2019-08-20 16:09:42.874
. 2019-08-20 16:09:42.874 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.
. 2019-08-20 16:09:42.874
. 2019-08-20 16:09:42.874 The server's xxxxxx key details are:
. 2019-08-20 16:09:42.874
. 2019-08-20 16:09:42.874 Algorithm: ssh-XXXXXX 256
. 2019-08-20 16:09:42.874 SHA-256: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
. 2019-08-20 16:09:42.874 MD5:
. 2019-08-20 16:09:42.874
. 2019-08-20 16:09:42.874 If you trust this host, press Yes. To connect without adding host key to the cache, press No. To abandon the connection press Cancel.
. 2019-08-20 16:09:42.874 In scripting, you should use a -hostkey switch to configure the expected host key. ()
. 2019-08-20 16:09:53.171 Attempt to close connection due to fatal exception:
* 2019-08-20 16:09:53.171 Host key fingerprint is ssh-xxxxx 256 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.
* 2019-08-20 16:09:53.171 (Exception) **Host key wasn't verified!**
. 2019-08-20 16:09:53.171 Closing connection.
. 2019-08-20 16:09:53.171 Sending special code: 12