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

harnhun

Passphrases with quote marks in them

Using winscp.com from the command line, with PKE:
-privatekey=c:/my-private-file -passphrase=password" 

Note the passphrase has a quote mark in it. If I type this in manually at the command line, it works fine. If I try and pass it in as a parameter, it always fails with "Wrong passphrase".

I've tried wrapping it in alternative quotes:
-passphrase='password"' 

and also escaping it:
-passphrase=password\" 

and even double escaping it:
-passphrase=password\\" 

All give "Wrong passphrase". There's no documentation that I can see as to what to do in these circumstances, so I'd hazard a guess it's either a bug in the software, or if there is an escape character, there's a bug in docs whereby the escape character/mechanism isn't commented (should be: https://winscp.net/eng/docs/scriptcommand_open#passphrase).

p.s. - thanks for the great work!