- 19 Feb 2025
- 2 Minutes to read
- Print
- DarkLight
FTP/SFTP Overview
- Updated on 19 Feb 2025
- 2 Minutes to read
- Print
- DarkLight
Understanding the FTP/SFTP
File Transfer Protocol (FTP):
File Transfer Protocol (FTP) is a standard communication protocol for transferring files between computers over a TCP-based network. It enables users to upload and download files, manage directory structures, and conduct various file operations. While other protocols, such as HTTP, also facilitate file transfer, FTP is often preferred for its ability to handle large files efficiently.
Additionally, it allows for the direct use of remote computers and mitigates System differences, such as variations in operating systems and directory structures. However, a significant drawback of FTP is its lack of security; it transmits all data, including usernames and passwords, in plain text, rendering it susceptible to potential attacks. FTP operates over port 21.
Secure File Transfer Protocol (SFTP):
The Secure File Transfer Protocol (SFTP), an extension of the Secure Shell (SSH) protocol, effectively addresses various security concerns associated with file transfers. By encrypting commands and data, SFTP ensures that sensitive information is securely transmitted. It offers functionalities for file access, file transfer, and file management comparable to FTP but with significantly enhanced security measures.
An SFTP file transfer begins when a client system initiates a transfer request. This request establishes a secure connection and is processed through the interface, allowing the file transfer from the server. The SFTP server processes this request and sends the file as encrypted. The encryption is carried out using various SSH algorithms, including DSA and RSA. The encrypted file is decrypted upon reaching the client system, making the data accessible. SFTP operates over port 22 to facilitate client requests efficiently.
Local path versus Client path
- Local pathrefers to the path of any file or directory within the client machine.
- Example: C:\Users\Documents\ftp_storage
- Remote pathrefers to the path of any file or directory on the server
- Example: ftp/198.162.1.92/FTP/Mydoc.docx
How to use FTP/SFTP on Decisions:
To access files from an FTP server using Decisions, you must establish a client-server architecture. This typically involves connecting to the FTP server, which is hosted at a specific hostname and contains various files you may want to manage.
Before you begin, ensure you have the following information ready to successfully connect to the FTP server:
- FTP/SFTP Server Address: The hostname or IP address of the FTP/SFTP server you are trying to access.
- Port Number: The port number to use for the connection. Default for FTP is 21, and for SFTP it is 22.
- Username: The username needed to log into the FTP/SFTP server.
- Password: The password associated with the username for authentication.
To start using FTP in Decisions, open the Flow Designer and navigate to the FTP steps under Integration > FTP. The functionalities provided include:
Creating a Directory in the FTP Server: This step allows you to create new directories to organize files on the server.
Deleting a File Using FTP: This step option removes files from the FTP server as needed.
Downloading a File from a Remote Server: This enables you to transfer files from the FTP server to your local system.
Listing All Files Present on the Remote Server: This step allows you to view all files available in the server's directories.
Moving a File from One Directory Path to Another: This allows you to rearrange files within the server's directory structure.
Uploading a File from the Physical System to the Remote Server: Use this step to transfer files from your local system to the FTP server. These functionalities help you efficiently manage files in the FTP server environment.