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

Ramesh

-hostkey=* - does not work on winscp 4.2.9

Hi

I use this command line to transfer files

Requirement is tranfer single file from windows to multiple AIX boxes :

c:\winscp429\winscp.com /command "option confirm off" "open sftp://username:password@boxname -hostkey=*" "put c:\t1.txt /tmp/t3.txt" "close" "exit"

it works, but askes for hostkey addition to cache everytime, can u help pls, am struggleing and it is already 4 hrs i spent on this.
martin

Re: Accepts 'Any' SSH Hostkey

In the latest beta version you can use -hostkey=* switch of open command.

You are giving up any security by doing this though. Make sure you understand the implications.
gorio

Accepts 'Any' SSH Hostkey

Hello Guys,

I have a problem every time that i try to run a script, i get the following message

https://winscp.net/eng/docs/message_security_breach

I'd like to accept it automatically. Like press key U to (U)pdate

How to do it in command line script ?

Thank you