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

jaxun

Re: Hide password

martin wrote:

You can save the password to stored sessions and open the stored session from the script. But anyway, the password can be decoded. So it is only slightly better.


I have addressed this by using a compiled autohotkey script that writes a winscp script file and then deletes the file after the run is complete.
martin

Re: Hide password

You can save the password to stored sessions and open the stored session from the script. But anyway, the password can be decoded. So it is only slightly better.
namit

Hide password

So my setup is that i have backup script that i run through winscp like this

option exclude "*.mp3; *.mp4; *.lnk; *.exe; *.msi; My Pictures; My Music; My Videos; @college; .metadata;"

# Comment out the next two lines to test
option batch on
option confirm off

# Connect - format: user:password@host
open chris:testpassword@backupserver.org

# Force binary mode transfer
option transfer binary

# Download backup file to remote directory
synchronize remote F:\ /home/chris/recent

# Disconnect
close

# Exit WinSCP
exit

But i do not like to have password in the clear in the text file, is their any nicer way of doing this?

Thanks