SFTP (key-based auth)

Interact with an SFTP (SSH File Transfer Protocol) Server using a private key for auth

Go to site
Explore
/
Apps
/
SFTP (key-based auth)

SFTP (key-based auth) API Integrations

Build and run workflows using the SFTP (key-based auth) API. Use 1000s of open source triggers and actions across 500+ apps. Or write custom code to integrate any app or API in seconds.

const Client = require('ssh2-sftp-client');

const { 
  host,
  username,
  privateKey,
} = auths.sftp

const config = {
  host,
  username,
  privateKey,
}

const sftp = new Client()

await sftp.connect(config)
this.cwd = await sftp.cwd();
return await sftp.end();
Upload String as File

Uploads a UTF-8 string as a file on an SFTP server

 
Try it

Authentication

SFTP (key-based auth) uses API keys for authentication. When you connect your SFTP (key-based auth) account, Pipedream securely stores the keys so you can easily authenticate to SFTP (key-based auth) APIs in both code and no-code steps.

This app holds details for an SFTP server you want to interact with in Pipedream.

Below, enter the hostname of the server you'd like to connect to, your username, and the private key you'd like to use to connect.

This app only supports key pair authentication, not authentication via password. If you need to use a username / password to connect to a host, please use the SFTP (password-based auth) app, instead.