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: How to automatically respond or ignore questions and warnings in Winscp when using the command line?

I assume you are using some old version of WinSCP. Recent versions do not prompt for overwrites, when executing scripts.

Though that does not apply for host key confirmation. You should never try to automate that!
See https://winscp.net/eng/docs/scripting#hostkey
Marco Avellar

How to automatically respond or ignore questions and warnings in Winscp when using the command line?

Hello !
Sometimes when you run some scripts or command lines, Winscp returns questions such as:
"Remote file 'xxxxxxx' already exists. Overwrite?"
or
"The server's rsa2 key fingerprint is: ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:x:xx:xx:xx:xx. 2018-08-03 10:18:20.487
If you trust this host, press Yes. To connect without adding host key to the cache, press No. To abandon the connection press Cancel
."

What can I do in Script or the command line, to respond or ignore them automatically?"