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.

Options
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)

Options

Topic review

Cbeach

Re: Prompt for passphrase: works in GUI, cannot get to work in Script

martin wrote:

It's not a password, it's a passphrase.
Use SessionOptions.PrivateKeyPassphrase
https://winscp.net/eng/docs/library_sessionoptions#privatekeypassphrase


YES! That's it. You are amazing. Thanks much.

I'd buy you a beer but the best I can do is click on the Donate button.
Cbeach

Prompt for passphrase: works in GUI, cannot get to work in Script - SOLVED

Greetings:

I'm working up a script for using WinSCP to upload files to an SFTP site.
In the GUI, it connects perfectly though does get a prompt for passphrase.

I copied the generated script in Powershell and run it, and it fails.

Probably not handling the prompt correctly but cant figure it out.
Attached are copies of log and script.

Thanks in advance!