I've read a whole bunch of different forums on this but cant seem to get mine to work. I need to transfer a file from my local machine to an SFTP server using SSIS. Here is what I've already done:
- I downloaded WinSCP
- Created a saved connection in WinSCP (
TS_NEW
) - Open up that saved connection (to verify)
- Copied
WinSCP.exe
andWinSCP.com
to the SSIS project folder - Created Text file with the below script.
option batch on
option confirm off
open sftp://TS_NEW.com
cd C:\Users\zaccheut\Documents\Analytics Project 2018\ThoughtSpot\SSIS File
option transfer binary
put FCT_DC_MONTH.csv /export/xvdb1/skynet/File_Test
exit
In SSIS my Execute Process Task editor has this:
Executable:
C:\Users\zaccheut\Documents\Visual Studio 2012\Projects\Skynet Refreshes\Skynet Refreshes\WinSCP.com
Arguments:
/script=C:\Users\zaccheut\Documents\Visual Studio 2012\Projects\Skynet Refreshes\Skynet Refreshes\local2remote.txt
How do I test this in Command Line, and what am I doing wrong?