Passphrases with quote marks in them

Advertisement

harnhun
Joined:
Posts:
1

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!

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum