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: Script hangs on prompt to accept new host key

No. You should not do this at all. If you still need to pass session name on command line, you can do:
winscp.com /command "option batch abort" "open xxx" /script=sss
But make sure there are no spaces in session name.
alani

Re: Script hangs on prompt to accept new host key

Thanks Martin - that works if I use open in the script.

Is there a way to get it to work if we invoke using

winscp.com xxx /script=sss

where xxx is the stored session name?

Alan
martin

Re: Script hangs on prompt to accept new host key

Use "option batch abort" before connecting.
alani

Script hangs on prompt to accept new host key

I have a problem when the winscp host key has been deleted on a remote machine.

Next time we connect with a script, it hangs on the prompt "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..."

Is there a way to get the session to time out and fail?

Thanks