WinSCP connection via .bat
Hello...
I configured a .bat file to make a connection through a task on the server.
However, I am receiving following error:
Does anyone have an idea of what this is or a possible solution?
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"
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.OpenSSH SSH-2 private key (new format)
Does anyone have an idea of what this is or a possible solution?