SFTP Script

I have a number of scripts that FTP files to a 3rd party, using wput.  Trouble is that my client has now asked that i change this to be SFTP - i have been supplied a user name and password and a private key - not sure how to script this tho - can i still use wput - if so what would the syntax be?

Thanks
LVL 6
matt_beattAsked:
Who is Participating?
 
Shift-3Connect With a Mentor Commented:
I've heard WinSCP is a good utility for this.
http://sourceforge.net/projects/winscp/

Information on scripting connections is here:
http://winscp.net/eng/docs/scripting
0
 
SysExpertCommented:
You can probably use a similar script, but you will  nees an SFTP client ( secure FTP ).
Check for a free GPL version, sourceforge may have some.

I hope this helps !
0
 
matt_beattAuthor Commented:
Brilliant tool mate, took me less than 10 minutes to get it all sorted out

Thanks

Matt
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.