WinSCP connection via .bat

Advertisement

Adalberto Jhemes
Joined:
Posts:
1
Location:
Brasil

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?

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum