Re: -hostkey signature error "whitespace"
This is rather a PowerShell question.
Anyway this works:
Actually documented here:
https://winscp.net/eng/docs/commandline#syntax
Anyway this works:
D:\winscp\WinSCP.com /log=D:\winscp\winscp.log /command "open sftp://user:password@address -hostkey=`"`"ssh-ed25519$s256$snpaaxdsra.....EmNyc=`"`"" "put $zfile /data/folder/" "exit"
Actually documented here:
https://winscp.net/eng/docs/commandline#syntax