What is the correct syntax to use WinSCP SFTP script
Hi,
We are struggling to find out the correct syntax for a SFTP script.
We started with the generated syntax:
We receive error:
Thanks for your feedback!
We are struggling to find out the correct syntax for a SFTP script.
We started with the generated syntax:
/log="C:\writable\path\to\log\WinSCP.log" /ini=nul /command "open sftp://XXX:pwd@site:7805/ -hostkey=""ssh-rsa 2048 generated_hostkey""" "Your command 1" "Your command 2" "exit"
We also tried to add extra parameters to the command:Server offered these authentication methods: publickey
No supported authentication methods available (server sent: publickey)
Attempt to close connection due to fatal exception:
No supported authentication methods available (server sent: publickey)
winscp.exe /ini=nul /log="path\logfile" /command "open sftp://XXX:pwd@site:7805/ -hostkey=""ssh-rsa 2048 generated_hostkey"" -privatekey=""path to Private key.ppk"" -clientcert=""pzth to client certificate"" -passphrase=""password of certificate""" "exit"