SFTP Connect
SFTP Connect
Section titled “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.
How it works
Section titled “How it works”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 assessionto the activities and close it with SFTP Close.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
host | expression | Servidor SFTP (nombre o IP). |
username | expression | User. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
port | expression | Puerto. Por defecto 22. |
password | credencial | Password (for password auth). Use = credential(...). |
privateKeyPath | expression | Path to private key (.pem / OpenSSH), for auth by key. |
privateKeyPassphrase | credencial | Private key phrase, if encrypted. |
Output
Section titled “Output”Returns a ZoanSftpSession. Pass it as session to the other activities.
Example
Section titled “Example”SFTP Connect host = "sftp.proveedor.com" username = "zoan" password = = credential("sftp") └─ body: SFTP Download remotePath = "/salida/reporte.csv" localPath = "C:/descargas/reporte.csv"Related activities
Section titled “Related activities”- SFTP Close — close the connection (mode without
body). - SFTP Upload / SFTP Download — transferir archivos.