Interact with an SFTP (SSH File Transfer Protocol) Server using a username and password for auth
Go to siteSFTP on Pipedream enables secure file management on remote servers directly from your workflows. Utilize this app to automate file uploads, downloads, and synchronization tasks between your systems and SFTP servers. Implement robust data pipelines or deploy content to web servers without manual intervention, all while maintaining a high level of security with password-based authentication.
module.exports = defineComponent({
props: {
sftp_password_based_auth: {
type: "app",
app: "sftp_password_based_auth",
}
},
async run({steps, $}) {
const Client = require('ssh2-sftp-client');
const {
host,
username,
password,
} = this.sftp_password_based_auth.$auth
const config = {
host,
username,
password,
}
const sftp = new Client()
await sftp.connect(config)
this.cwd = await sftp.cwd();
return await sftp.end();
},
})
Scheduled Data Backups: Automatically back up critical data from your local systems to an SFTP server. Set a cron trigger in Pipedream to periodically upload files, ensuring your backups are both current and off-site.
E-commerce Order Processing: When a new order is placed via a platform like Shopify, use Pipedream's Shopify trigger to fetch order details, generate invoices, and securely transfer them to an SFTP server for archiving and further processing.
Website Content Deployment: Set up a Git-triggered workflow that responds to commits or tags. When updates are pushed to your repository, Pipedream can fetch the latest content and deploy it to your web server via SFTP, streamlining your deployment process.
Emit new events when files get created, changed or deleted from a remote directory. See the docs
Uploads a file or string in UTF-8 format to the SFTP server. See the documentation
SFTP (password-based auth) uses API keys for authentication. When you connect your SFTP (password-based auth) account, Pipedream securely stores the keys so you can easily authenticate to SFTP (password-based auth) APIs in both code and no-code steps.
Below, enter the hostname of the SFTP server you'd like to connect to, your username, and the password you'd like to use to connect.
This app only supports password-based authentication, not authentication via private key. If you need to use a private key to connect to a host, please use the SFTP (key-based auth) app, instead.