Re: When using -hostkey option in script mode, open command fails with "Too many parameters" error.
The correct syntax is:
Note the
See https://winscp.net/eng/docs/scriptcommand_open#examples
winscp.com /command "open sftp://username:password@ipaddress -hostkey=""ssh-rsa 1536 XX:XX:XX:XX:XX:XX:XX:XX:XX""" "get xxx" exit
Note the
=
See https://winscp.net/eng/docs/scriptcommand_open#examples