Skip to content

SFTP Connect

Type: sftp-connect  ·  Package: SFTP Activities v1.0.0  ·  Output: ZoanSftpSession

Connects to an SFTP server and returns a session that is shared by the other activities. It is the starting point of any transfer.

Connect host:port to username and the chosen authentication (password or private key). Two modes:

  • With body: activities inside inherit the session; When finished it closes itself.
  • Without body: returns the session as output; pass it as session to the activities and close it with SFTP Close.
ParameterEditorDescription
hostexpressionServidor SFTP (nombre o IP).
usernameexpressionUser.
ParameterEditorDescription
portexpressionPuerto. Por defecto 22.
passwordcredencialPassword (for password auth). Use = credential(...).
privateKeyPathexpressionPath to private key (.pem / OpenSSH), for auth by key.
privateKeyPassphrasecredencialPrivate key phrase, if encrypted.

Returns a ZoanSftpSession. Pass it as session to the other activities.

SFTP Connect host = "sftp.proveedor.com" username = "zoan" password = = credential("sftp")
└─ body:
SFTP Download remotePath = "/salida/reporte.csv" localPath = "C:/descargas/reporte.csv"