Updated on 2024-04-23 GMT+08:00

FTP

The FTP connector is a channel for file transfer based on the FTP/SFTP protocol. Through the FTP connector, files can be exchanged with an external FTP server.

  • The File Transfer Protocol (FTP) is in the TCP/IP protocol group. It consists of two parts: FTP server and FTP client. The FTP server is used to store files. Users can use the FTP client to access resources on the FTP server.
  • The SSH File Transfer Protocol (SFTP) is a secure version of FTP and a part of the SSH protocol. SFTP enables easy data transmission and data access through the data flow shell. SFTP, also known as the SSH file transfer protocol, provides a secure connection to transfer files and traverses file systems on local and remote systems.

By default, FTP uses TCP ports 20 and 21. Port 20 is used to transmit data, and port 21 is used to transmit control information (commands). Whether to use port 20 as the port for data transmission depends on the FTP transmission mode. In the active mode, the data transmission port number is 20. In the passive mode, the port is determined after the negotiation between the server and the client.

Creating an FTP Connection

  1. Log in to the new ROMA Connect console.
  2. In the navigation pane on the left, choose Connector. On the page displayed, click New Connection.
  3. Select the FTP connector.
  4. In the dialog box displayed, configure the connector and click OK.

    Parameter

    Description

    Name

    Enter the connector instance name.

    Protocol

    Protocol used by the FTP connector. Options are FTP and SFTP.

    Host IP

    IP address of the FTP server.

    Port

    By default, FTP uses TCP ports 20 and 21. Port 20 is used to transmit data, and port 21 is used to transmit control information (commands).

    Username

    FTP username.

    Password

    FTP user password.

    Description

    Enter the description of the connector to identify it.

Action

Writing data to a file

Configuration Parameters

Parameter

Description

Path

Enter the relative path of the file on the FTP server.

File Name

Enter the name of the target file.

Content

Enter the content to be written.

Write Policy

Select a policy.

  • Overwrite: Overwrite the content of the file with the same name.
  • Append: Add content to the end of the file with the same name.
  • Backup: Back up the file with the same name. The suffix is the execution time.