Re: My batch file for WinSCP only works with the hostkey but not with the privatekey
Well, you didn't post any error message nor a log file.
Though for sure, you need the
https://winscp.net/eng/docs/ssh_keys
Though for sure, you need the
-hostkey
switch. A "private key" is not a replacement for a "host key". Read this to understand:
https://winscp.net/eng/docs/ssh_keys