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

martin

Re: How does WinSCP uses the password

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.
Jay Taba

How does WinSCP uses the password

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