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@66.226.72.149
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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
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 https://winscp.net/eng/docs/ui_pageant
- there's a stored site named marina@66.226.72.149 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.
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