Send fails when using script, using GUI works flawless
WinSCP Ver 5.19.6
Windows Server 2019
Script (passwords and site replaced with x for confidentiality):
Script Screen Output (at the command prompt):
Thanks in advance for your help!!!
Windows Server 2019
Script (passwords and site replaced with x for confidentiality):
/log="C:\writable\path\to\log\WinSCP.log" /ini=nul /command "open sftp://xxxx@xxxxx.com/ -hostkey=""ssh-rsa 4096 xxxxxxxxxx="" -privatekey=""E:\xxx\keys\xxxxx_private_key.ppk"" -passphrase=""xxxxxxx"" -rawsettings AgentFwd=1 ConsiderDST=0" "Your command 1" "Your command 2" "exit"
Searching for host... Connecting to host... Authenticating... Using username "xxxx". Authenticating with public key "xxxx". Further authentication required Connection has been unexpectedly closed. Server sent command exit status 0. Authentication log (see session log for details): Using username "xxxxxx". Welcome to the xxxx SSH server. Authenticating with public key "xxxxxx". Further authentication required Authentication failed.