# SFTP connector


SSH File Transfer Protocol (SFTP) is a file transfer protocol that encodes and transmits data through a secure channel. It establishes security by encrypting both authentication credentials and data files being transferred.

Use this connector for bi-directional SFTP integrations. This connector allows you to read, write, and manage files in your SFTP server.

With the SFTP connector, you use the triggers to monitor your SFTP server for events (for example, New/updated CSV file in directory). You can also integrate recipe actions like Upload file, Rename file, and Download file.

# How to authenticate with SFTP

Because SFTP is built on top of the Secure Shell Protocol (SSH), you can include SSH keys as part of your authentication flow. SSH keys can be used in combination with user ID/password or used independently to authenticate Workato to your SFTP server. This extends the security of your connection with SSH encryption for your public and private keys.

# Connection setup

Connection setup SFTP connection setup

Input field Description
Connection name Given this connection a unique name that identifies which SFTP server it is connected to.
Location Select an existing project for this connection or create a new one.
Connection type If you want to connect using an on-premise group, select the group name from the picklist. Otherwise, to use a direct connection, select Cloud.
Auth type Select which authentication method to use.
Username The user name of the SFTP server to be connected.
Password The password credential to the SFTP server to be connected.
Private key Only for Public/private key authentication type.
The SSH private key for the SFTP server to be connected. You must provide the SSH private key in OpenSSH format (opens new window). To save a key in this format, specify SecureShellPrivateKeyFormat.NewOpenSecureShell value as the format parameter. Refer to the Private key example format for more information.
Hostname The address of your SFTP server.
Port The default port for SFTP is 22.
Host key fingerprint A hash of the SSH public key. Workato supports SHA256 and MD5 encryption. For on-premise connection contact SFTP server administrator for the public key in Base64 format.
Transfer buffer size The size of the buffer used to transfer files.
Force close Shuts down the SSH connection at the end of each transaction. Toggle this if your SFTP server connection attempts get stuck. Otherwise, leave it blank.

# Connecting to SFTP using Workato on-prem agent

To access your SFTP server via Workato on-prem agent you have to select the on-prem group under the Connection type field.

In case you are using cloud profiles approach then you have to configure the SFTP connection directly in Workato cloud. Please note that for on-premise connection not all properties are supported.

Otherwise, if your on-premise group connections are configured using config.yml you can find more information here.

On-prem agent version

OPA 24.0 or newer is required to use SFTP connector.

# Private key example format

You must specify the SecureShellPrivateKeyFormat.NewOpenSecureShell value as the format parameter to save your key in the OpenSSH format.

An example private key in OpenSSH format:

-----BEGIN OPENSSH PRIVATE KEY-----
EcvBi0CzMfLzAAAAgQCd/q/q1zxTyIWYW3+Io+eMvuMc7w17fVJEwCILNiB6CQea
dPt3OWWr4boMjnaKOf6HvgCMgAQVoKzHEnM6wpa3Xm1CaS17xBRe/1fZl4lClzoZ
ebrOYmmt/nWj8cgWxB/aFGcBfk5Zn/DPOTMPTiIsTKQR7R6CBMWpw8Ssa6hEvQAA
AIBEmhtgDjsztfMyeWHygUs0965DeT69XxqOd0J4kuaeF6MP29Q1AZiojey/E2hF
Z8TLqynQ6hHWVzij489TsxiWiDFs46rUoX2K3FVTGOXAV/JE8V0AaQLymv1PhIce
1Vq89CXM1fNPRv6/yQ9RSlJA7vDg6vCPrmyA4bK6/Oq80w==
-----END OPENSSH PRIVATE KEY----- |

The SFTP connector documentation contains the following resources:


Last updated: 6/6/2024, 1:35:31 PM