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

martin

Re: Host Key error...

The log file you have posted contains two sessions.
1) GUI session. I'm not sure why you posted that.
2) Scripting session that successfully passed both the host key verification and the authentication. So I believe both your problems are resolved.

You now have a problem with a syntax of your synchronize command, as you are missing quotes. The command should be:
synchronize local "C:\Users\jshridha\OneDrive - ***************\Desktop\New folder" /Clients/BDM_****
kbhan

Host Key error...

Hey,

I have tried both the above mentioned syntax but not able to get the result.
Please find the log files and help to resolve the error.
martin

Re: Please help: Synchronization automation, Host Key error.

Your first two examples are both correct (though the first one is better).
If they do not work for you, post log file for them.
kbhan

Please help: Synchronization automation, Host Key error.

Hello,

Thanks Martin for a solution but now log shows host key doesn't match.
I have chosen the option as attached screenshot to get the script.

open sftp://*******:*************@********* / -hostkey="ssh-dss 1024 oSrasoJwdsRkbYnVIdJWf0pYqNPVOKqiW70AgGZ5fzI="

By using this code, I got the error that host key doesn't match.
I have used below still got the same error.
open sftp://*******:***********@********* -hostkey="ssh-dss 1024 80:91:71:eb:7a:74:bd:7c:60:8b:d0:7b:fe:e1:98:f2"


I have used that one also, got the same error.
open sftp://*******:*************@********* -hostkey="ssh-dss 1024 oSrasoJwdsRkbYnVIdJWf0pYqNPVOKqiW70AgGZ5fzI=ssh-dss 1024 80:91:71:eb:7a:74:bd:7c:60:8b:d0:7b:fe:e1:98:f2"


The key Fingerprints I got while login is... as attached snap also.

ssh-dss 1024 oSrasoJwdsRkbYnVIdJWf0pYqNPVOKqiW70AgGZ5fzI=

ssh-dss 1024 80:91:71:eb:7a:74:bd:7c:60:8b:d0:7b:fe:e1:98:f2


The log for the one of host key type is attached.
kbhan

Automatic Synchronization to a local Directory from Remote Server

Hello,

I am trying to do an automatic synchronization of a single (.csv) file of around 250mb which updated regularly to a local directory from a remote server but unable to do so.
Running this script but nothing happen. Batch file executed but won't get any update.

Please help.
option batch abort
option confirm off
open sftp://username:pass_word@host_name -hostkey="ssh-dss xxxx xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
synchronize local C:\Drive\Local\Reporting /Remote/BDM_Remote
exit

Batch file
winscp.com /script=synctool.txt

I run this bat file and the window closes at: Authenticating with pre-entered password.
Nothing happens.