SFTP

Discover more about the SFTP component and how to use it on the Digibee Integration Platform.

SFTP connects to a service that supports the SFTP (Secure File Transfer Protocol or SSH File Transfer) protocol to upload, delete, download, list, or move files.

Parameters

Take a look at the configuration options for the component. Parameters supported by Double Braces expressions are marked with (DB).

Important information:

  • The SFTP connector uses an implementation library that has disabled by default specific algorithms that are considered unsafe. The Server Host Key, Public Key Algorithms and KEX Algorithms parameters are available for when it's necessary to enable those algorithms to be able to establish a SFTP connection. Although is possible to use this configuration, it's not recommended to use unsafe algorithms.

  • Currently, the Use Dynamic Account, Account Name and Scoped parameters can only be used in Pipeline Engine v2 and are only available in the Restricted Beta phase. To learn more about it, read the article Beta program.

Message flow

Output

When executing a SFTP component using the operations Download, Upload or Move, the following JSON structure will be generated:

{
    "fileName": "picture.png",
    "remoteFileName": "imap-console-client.png",
    "remoteDirectory": "pub/example",
    "success": "true"
}
  • fileName: name of the local file.

  • remoteFileName: path of the remote file or related path of the remote file.

  • remoteDirectory: path of the base remote directory (related or absolute).

  • success: "true" if the operation was successful, "false" if otherwise.

When executing a SFTP component using the List operation, the following JSON structure will be generated:

{
   "remoteDirectory":"pub/example",
   "success":true,
   "content":[
      {
         "file":"file.txt",
         "isDirectory":false,
         "size":1024,
         "permission":"-rwxrwxrwx",
         "flag":14,
         "accessed":"Sat Jan 14 09:21:05 UTC 2023",
         "modified":"Sat Jan 14 09:21:05 UTC 2023"
      }
   ]
}
  • remoteDirectory: path of the base remote directory (related or absolute).

  • success: "true" if the operation was successful, "false" if otherwise.

  • content: list of files in the remoteDirectory.

  • file: name of the file.

  • size: size of the file.

  • isDirectory: if the returned object is a directory, "true" will be shown; if it's a file, "false" will be shown.

  • permissions: a string containing the permission type given to the object.

  • accessed: date of the last access.

  • modified: date of the last change.

  • flag: returns flags, indicating which attributes are present.

The manipulation of files inside a pipeline occurs in a protected way. The files becomes available in a temporary directory that only the pipeline under execution has access to.

To understand how the messages flow work in the Digibee Integration Platform, read the Messages processing documentation.

Last updated