Post a reply

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

cmoran

Thanks!

Thank you very much Martin!

This was exactly what I needed to know.
martin

Re: One line to change password "WinSCP.com /key gen key.ppk /changepassphrase"

You can use this (undocumented) syntax:
WinSCP.com /keygen key.ppk /passphrase=old /changepassphrase=new
cmoran

One line to change password "WinSCP.com /key gen key.ppk /changepassphrase"

Hi all, I am trying to change the passphrase for a .ppk file.
I can change the password using CMD as Administrator by running the command "WinSCP.com /key gen key.ppk /changepassphrase", then entering the password twice.

I wish to do the above with a script, is there a way to set the password in one line?

I have tried a few things similar to below in a batch script but had no luck.
WinSCP.com /key gen key.ppk /changepassphrase

Password
Password


Can anyone point me in the right direction?

#Please not i had to split key gen as it is caught by the spam filter