SFTP TP Download

Descarga un archivo por SFTP con control de algoritmos SSH, para servidores legacy que el nodo SFTP nativo no soporta

SFTP TP Download

AI-generated

Summary

Connects to an SFTP server and downloads the specified remote file into an output item’s binary property. It can append legacy SSH algorithms for compatibility, optionally delete the remote file after download, or skip missing files.

Inputs

  • remotePath (required) — Absolute path of the remote file to download.
  • binaryPropertyName (required) — Output binary property name; defaults to data.
  • options — Optional settings: removeAfterDownload deletes the remote file after a successful download; fileName overrides the output binary filename (otherwise the remote path’s basename is used); mimeType sets the binary MIME type (defaults to application/octet-stream); skipMissing emits a skipped result if the file is missing instead of failing.
  • sshOptions — Optional SSH compatibility settings. Comma-separated KEX, host key, cipher, and HMAC algorithms are appended to defaults, which include legacy algorithms. Also supports a client identification string, connection timeout in milliseconds (default 20000), and SSH handshake logging to n8n logs.
  • SFTP credentials (required) — SFTP connection credentials provide the host, username, and password and/or private key; the port defaults to 22.

Output shape

One output item per input item, returned on the main output.

A successful download returns JSON fields success, remotePath, bytes, fileName, and mimeType, plus the downloaded file under the configured binary property. If removeAfterDownload is enabled, JSON also includes removed: true. With skipMissing, a missing file yields JSON with success: false, remotePath, skipped: true, and a reason, without binary data. Other errors fail the operation unless the node is configured to continue on fail, in which case an error item is returned.

Links

Discussion