FTP / SFTP package
Use the FTP / SFTP package to automate FTP / SFTP operations.
- The following are some forms of authentication for an FTP server:
- User credentials: Requires an FTP username and password.
- Anonymous: This form of authentication is enabled on sites where files are available for public access and the users need not identify themselves to the server.
- Key-based: SFTP authentication is usually done with a private and public key. The key pair is automatically generated by the computer. The private key is kept with the SFTP client and the corresponding public key with the SFTP server. When establishing a connection, the client shares the private key to be matched with the corresponding public key on the server.
- FTP can run in active or passive transfer mode.
- In the active mode, the client informs the server about the port used for listening and starts listening for incoming data connections from the server.
- In the passive mode, the client receives a server IP address and server port number from the server. The client opens a data connection to the server IP address and server port number that are received. Most organizations prefer the passive mode because it involves less or no alterations to the firewall settings.
- FTP supports binary and ASCII file transfer types:
- Use the binary option when transferring executable files.
- Use the ASCII option when transferring text files.
Before you start
Perform the following actions within the FTP / SFTP package.
- Establish a connection with the FTP/SFTP server using the Connect action. When establishing a connection, associate the FTP/SFTP server details with a session name. Use the same session name for all corresponding actions.
- Use the FTP/SFTP actions to automate a task. The actions enable you to perform following tasks:
- Upload, download, delete, or rename files.
- Upload, download, create, or delete folders.
- Navigate to the parent folder or a specific folder.
- After you have automated the tasks related to FTP / SFTP, terminate the connection to the server using the Disconnect action.
Actions in the FTP / SFTP package
|Change folder||Navigates to either the parent folder or another specific folder on
an FTP/SFTP server.
|Connect||See Using Connect action for FTP/SFTP.|
|Create folder||Creates a folder in an existing folder on the FTP/SFTP server.
|Delete files||Deletes files from an FTP/SFTP folder.
|Delete folder||Deletes a folder (including all the subfolders and files within it)
from an FTP/SFTP server.
|Disconnect||Terminates the connection to the FTP/SFTP server.
Enter the session name – Use the same session name that you have provided when establishing a connection with the FTP/SFTP server using the Connect action.
|Get files||Downloads files from a remote FTP/SFTP folder to a specific folder on
the client machine.
|Get folders||Downloads a folder from an FTP/SFTP server to a client machine.
|Put files||Uploads one or more files from the client machine to the FTP/SFTP
|Put folders||Uploads a folder from the client machine to the FTP/SFTP server.
|Rename files||Renames files in an FTP/SFTP folder.