SFTP Client


The SFTP Client node establishes an SFTP client that can connect to a SFTP server for file operation purposes.

Node Type

External.

Input and Output Ability

This node has 1 entry point and 1 exit point.


The input and output of this node can be any format. However, if you want to use expressions to refer to any record in the msg or metadata, you must ensure the input is a JSON object.

Node Properties

../../_images/sftp_client.png


Name

The name for this node.


Host

The URL of the SFTP server.


Port

The port of the SFTP server. 22 by default.


Logon Type

The authentication method for the SFTP server. Available options are as per the below.

  • Normal: Enter the Username and Password to log in to the SFTP server.

  • Key File: Enter the Username and upload the Private Key File. Max size of private key file is 1M. If required, enter the Key Password which is used to encrypt the file.


Action

The action of the node when it is triggered. Values are as per the below.

  • Download File: Downloads the specified file. Max file size of downloading is 100M.

  • Upload File: Uploads the specified file. No file size limit for uploading.

  • Move/Rename File or Folder: Moves or Renames the specified file/folder.

  • Delete File: Deletes the specified file.

  • Get File List: Gets all the files under the specified path and passes them to subsequent downstream nodes, such as Split or Script, in the form of a JSON array for processing.


    For example:

    [
        {
            "fileName":"1",
            "isDir":true,
            "size":0,
            "updatedTime":1618546430
        },
        {
            "fileName":"20200901.path2 (4).txt",
            "isDir":false,
            "size":0,
            "updatedTime":1599015636
        },
        {
            "fileName":"20200902.path2 (10).txt",
            "isDir":false,
            "size":0,
            "updatedTime":1599015636
        }
    ]
    


    Note

    If there are subfolders, the files in the subfolders will not be included in the file list.


After selecting the action, enter the path of the file/folder.


Description

The description for the node.


Test Connection

You can click the Test Connection button to test the SFTP connectivity.

Limitations

  • Each SFTP Client node can only process 1 file.

  • Max download file size: 100M

  • Max private key file size: 1M

  • As the SFTP server is not managed by EnOS, connection problems could occur due to server downtime or other instances that are not within our control.

Samples

Input Sample

The input message can be any format that SFTP supports.

Output Sample

The output message can be any format that SFTP supports.