Hide password

Advertisement

namit
Joined:
Posts:
7
Location:
Ireland

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

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.

Reply with quote

jaxun
Guest

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.

Reply with quote

Advertisement

You can post new topics in this forum