Topic "How does WinSCP uses the password"

Author Message
Jay Taba
[View user's profile]

Joined: 2016-04-08
Posts: 1
Location: Los Angeles
I am rookie at using Winscp, and have been tasked with deciphering some scripts used for transferring files.
We have a batch file that is scheduled to run on daily basis, which has the following line :

C:\"program files"\WinSCP\winscp.exe /console /script=c:\"program files"\winscp\nenesftp.txt

The neneftp.txt file reads as:
option batch continue
option confirm off
open sftp://marina@
lcd Y:\complete

How do I find out/where should I search to find the password used for "marina" account?

Thanks in advance for your help
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27106
Location: Prague, Czechia
There's no password in the script. Possibilities are:

- no password is required by the server
- the script relies on a Pagent authentication agent to provide a private key, see
- there's a stored site named marina@ that has the password (or an unencrypted private key) saved.

You can tell easily from a session log file. If not, attach it here.

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License