Re: Too many parameters for command 'open'
That's done it! Damn, thought I could put the hostkey in a file.
Thanks for your help
Thanks for your help
-hostkey
is a fingerprint not a path to a file.
winscp.com /command "open sftp://bla@bla.com/ -hostkey=""ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx..."" -privatekey=""C:\bla\sqlbackup\SFTP.ppk""" "rm TEST.TXT" "put C:\bla\sqlbackup\TEST.TXT" exit
rm
onwards.
winscp.com /command "open sftp://bla@bla.com/ -hostkey="C:\bla\sqlbackup\HOST.ppk" -privatekey="C:\bla\sqlbackup\SFTP.ppk" "rm TEST.TXT" "put C:\bla\sqlbackup\TEST.TXT" exit