Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


Hello, I got some suggestions that I was not using parameter -privatekey on my script.
This is the line i was using to connect:
open sftp://user@host -hostkey="ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"

On GUI, i have the ppk key added since I installed Winscp many years ago. But did not notice i had to use -privatekey on my script.
However the script was working fine until I migrated to 5.17.6. Perhaps this new version does require -privatekey field for security?

winscp batch script ask for password on version 5.17 when I only use username and certificate


I just updated Winscp from 5.11 to 5.17. My bath script only use username@server and private ssh certificate. My script used to run OK in 5.11, but after Winscp was updated to version 5.17, the batch ask for password after trying to authenticate with username@server + private ssh certificate. If I launch WinScp GUI, all looks OK. So as a workaround i had to roll-back to 5.11.
Any ideas?