The option to use accept-all value (*
) for the -hostkey
switch is available only since WinSCP 5.2 beta. You are probably using an older version.
See https://winscp.net/tracker/815
Also make sure you understand what you are doing. You are giving up any security by using this switch.