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

martin

That's covered in the link I've posted above.
How would you imagine this to be working? It's impossible. You cannot encrypt anything without a key. And where would you put the key?
Guest

In general, is there a way to keep an encrypted file containing the passphrase and pass it to WinSCP?
yashgt

Unknown switch 'passwordsfromfiles'

I get the following message:
C:\Users\yash_ganthe>"C:\Program Files (x86)\WinSCP\winscp.com" /script=D:\Personal\EXPTS\WinSCP\datatransfer.winscp 

Unknown switch 'passwordsfromfiles'.

In datatransfer.winscp I have:
open scp://ec2-user@myserver/ -hostkey="ssh-ed25519 255 dENqCIg1YzbpTjchTb4kTEknBY6uVCrXYDmyi02iP1g" -privatekey="D:\Personal\prot_key.ppk" -passwordsfromfiles -passphrase=D:\Personal\passphrase.txt

I am using version 5.21.7.

In general, is there a way to keep an encrypted file containing the passphrase and pass it to WinSCP?