Automate script without storing password in parameters
I am trying to automate (scheduled daily) a simple script to download some files from my FTP to my computer using SFTP. I have a stored session that I can use to connect manually successfully. I've managed to create the script and it functions properly when I run it. See below:
I would like to avoid having to put my plain text password right in the script. Is there a way to recall my stored session with my saved password in it instead?
option batch on option confirm off open user:password@site.org cd /mydirectory option transfer binary get file.txt c:\ close
I would like to avoid having to put my plain text password right in the script. Is there a way to recall my stored session with my saved password in it instead?