Re: ssh-keygen fails
The
https://winscp.net/eng/docs/remote_command
ssh-keygen
, when executed this way prompts for key information. WinSCP Console windows does not support interactive commands:
https://winscp.net/eng/docs/remote_command