Topic "Hide password"

Author Message
namit
[View user's profile]

Joined: 2008-02-22
Posts: 7
Location: Ireland
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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
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.
_________________
Martin Prikryl
jaxun

Guest


prikryl 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.
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