Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
Thank you very much, I added the argument and it worked.
Yes, indeed WinSCP does not add hostkey of the tunnel session to the code.
TunnelHostKeyraw settings with value
ssh-ed25519 256 ....
I have a tunneled connection, using one host to jump to another. I configured it and it works properly in the GUI. The problem is when I try to execute the code that is Generated in a script. I get the error below.
Searching for host...
Connecting to host...
Expected host key was not configured, use -hostkey switch.
Host key fingerprint is ssh-ed25519 256 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=.