Introduction
This article guides you through using our SSIS SFTP Task (Secure FTP, FTPS) and provides tips and possible solutions.
The SSIS SFTP Task can perform many operations using SFTP, FTP/SSL (i.e., FTPS), or Classic FTP Protocol. It supports advanced options and authentication mechanisms like NTLM, Kerberos, Client Certificate, and Private Key.
Prerequisites
- SSIS PowerPack: Download and install the ZappySys SSIS PowerPack from this site.
Steps
Create a Secure FTP connection
-
Right-click on Connection Managers, select New Connection…, then ZS-SFTP.
-
In the Connection Manager UI, select SFTP - SSH File Transfer Protocol, enter your Hostname, and select Logon. Enter your Username and Password.
-
For the FTP - File Transfer Protocol option, enter your Hostname and select Encryption type. Enter your Username and Password.
-
If you have a Proxy configuration, select the proxy tab and fill in the Proxy type, server, and credentials fields.
-
Configure Encryption Algorithms, Server Key size, disable options, and more under the Settings tab. Suppose you encounter the error message Disconnected by the server. Key Exchange failed, refer to this article for help.
-
Configure SSL/TLS versions and more under the SSL/TLS tab.
-
Utilize more options like Transfer mode, Server fingerprint or certificate, max upload/download speed, and others under the Advanced settings tab.
-
Click Test connection to verify your configuration and then click OK to save it.
Use our SFTP task
- Drag and drop our SFTP task to the Control Flow, then double-click it.
- Select the action you want; in this case, we selected Download FTP server File(s) to local directory.
- Choose the connection created in the previous step.
- Select a path from the server; you can select one file or use a wildcard to get more than one file.
- Select the local file path; use a variable as a path, select a variable, and choose the overwrite option if you want to overwrite or throw an error if the file exists.
- Click on OK to save the configuration.
- Run the package or only the task to check the result.
SFTP task options
Explore a list of actions you can use with our tool; each action has a similar configuration as the example we used before:
- Download File From FTP: Download FTP server file(s) to a local directory.
- Upload File To FTP: Upload local file(s) to FTP server.
- Delete FTP File: Delete FTP file(s).
- Delete FTP Folder: Delete FTP folder(s).
- Move FTP File To FTP: Move FTP file(s).
- Rename FTP File: Rename FTP file(s).
- Create New FTP File: Create a new FTP file.
- Create FTP Folder: Create a new FTP folder.
- Create FTP Folder If Not Exists: Create a new FTP folder if it does not exist.
- Get FTP File Size: Get FTP file(s) size.
- Get FTP File Exists Flag: Get FTP file exist status.
- Get FTP File Count: Get FTP files count.
- Get FTP File Last Modified Date: Get FTP file LastModifiedDate.
- Get FTP File Creation Date: Get FTP file CreationDate.
- Get FTP File Last Access Date: Get FTP file LastAccessDate (Last Read).
- Get FTP File Path Latest: Get the latest file path (Sort By LastModifiedDate).
- Get FTP File Path Oldest: Get the oldest file path (Sort By LastModifiedDate).
- Get FTP File Data As String: Read FTP File content as text.
- Get FTP File Data As Binary: Read FTP File content as a byte array.
- Get FTP Folder Exists Flag: Get FTP folder exist status.
- Get FTP File List As ADO NET DataTable: Get FTP file list as
ADO.net
DataTable. - Get FTP Folder List As ADO NET DataTable: Get FTP folder list as
ADO.net
DataTable.
Video Tutorial
FAQ
Check our FAQ article for our SFTP task here. It will help you resolve any issues you might encounter.
Conclusion
Following these steps, you can easily configure our SFTP component in SSIS. For further assistance or inquiries, contact our support team via chat on our website.
Reference
For more detailed information, refer to our SSIS SFTP Task (Secure FTP, FTPS) article.