I was doing a file transfer from a batch file using a script in WinSCP with a host key (ssh-rsa 2048). I recently updated WinSCP from version 5.5.3 (build 4214) to version 5.19.6 (build 12002).
As a result, the batch file now prompts you to enter a password that was not required in previous versions when running WinSCP.
What should I do to avoid entering the password? Thank you.
< Server >
Windows Server 2016 Standard
< Bat Command >
"C:\Program Files (x86)\WinSCP\WinSCP.exe" /console /script="Script.txt" /log="WinSCP.log"
< Script.txt >
option batch on
open sftp://UserName@ServerName -hostkey="ssh-rsa 2048 aa:bb:cc:dd:ee:ff:00:11:22:33:44:55:66:77:88:99"
option confirm off