Topic "Master Password command line switch"

Author Message
Charles Sorgie
[View user's profile]

Joined: 2015-03-05
Posts: 12
Add a Master Password switch to the winscp.exe command line so the master password can be specified in scripts.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26299
Location: Prague, Czechia
In general, we discourage using stored site settings in scripting.
https://winscp.net/eng/docs/scripting#configuration
This would go clearly against that recommendation.
Charles Sorgie
[View user's profile]

Joined: 2015-03-05
Posts: 12
martin wrote:
In general, we discourage using stored site settings in scripting.
https://winscp.net/eng/docs/scripting#configuration
This would go clearly against that recommendation.


If the master password cannot be supplied on the command line, and a master password has to be supplied to secure the GUI configuration, then don't you end up having to supply the passwords on the open in the script anyway? Either way you can use the technique I described here [https://winscp.net/forum/viewtopic.php?t=24266] it is just whether or not you have to supply it once as the master password or for every site in the URL.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26299
Location: Prague, Czechia
Quote:
If the master password cannot be supplied on the command line, and a master password has to be supplied to secure the GUI configuration, then don't you end up having to supply the passwords on the open in the script anyway?

Yes. But what's an advantage of encrypting a password with a master password, that you would have to openly supply in the script anyway?

I will consider the DAPI solution.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License