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

vk.kumar

thanks for update.

we are using WINSCP 4.3.2 version. I couldn't able to find the option which you were telling.


open sftp://user:password@example.com/ -hostkey=""

do we need to give the private key in the hostkey value??.


Regards,
Kumar
Hema

Navigation to find -host key fingerprint

If you are using 5.7.2. version, click 'Session' tab in the Menu, then click 'Server/Protocol Information'. 'Server host key fingerprint' can be seen at the bottom of the 'Protocol' screen.
vk.kumar

Thanks for the update.

what should be given in the hostkey value.

open sftp://user:password@example.com/ -hostkey=""
vk.kumar

1. Files will be polled from local machine.
2. I need to transfer multiple files from local machine to remote SFTP location.

Could you provide sample script for the above requirement.
martin

Re: Sample Script to send files using SFTP WINSCP

What specific problem are you having with the task? Where are you polling the files from? A local or remote location?
vk.kumar

Sample Script to send files using SFTP WINSCP

Hi All,

Iam new to scripting. My requirement is as below:

Poll the files from a particular location and send to target location using SFTP (WINSCP).
Guide me writing a script for this requirement.

Thanks in Advance.
Krishna