Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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: WinSCP connection via .bat

Please post logs both from script and the GUI.
Adalberto Jhemes

WinSCP connection via .bat

Hello...
I configured a .bat file to make a connection through a task on the server.

cd "C:\Program Files (x86)\WinSCP"
 
WinSCP.exe
/log=E:\Integracoes\Monnera\Vendas\ /console /command "option batch continue" "option confirm off" "open sftp://386818@sftp.mona.com.br:2222 -privatekey=E:\MoneraKey\key-oriente-farma.ppk" "option transfer binary" "put E:\Integracoes\Monnera\Vendas\*.TXT" "exit"

However, I am receiving following error:
OpenSSH SSH-2 private key (new format)

I did the test using the key file as .ppk and without the extension too, but the error still exists, and it is valid to inform that if I use this same key file directly in the WinSCP application, that is, via the screen, it works normally.

Does anyone have an idea of ​​what this is or a possible solution?