← All Playbooks • SFTP & Storage • 6 min read

How to Connect SFTP with SSH Private Key in Power Automate (Without Timeout Errors)

Eliminate 504 Gateway Timeouts, SSH cipher negotiation failures, and 50MB chunk limits in Microsoft Power Automate by routing SFTP/FTP operations through Zetaleap Serverless SFTP Gateway.

⚠️ Common Power Automate Bottleneck

Microsoft Power Automate’s built-in SFTP-SSH connector frequently fails when connecting to modern OpenSSH 8.8+/9.x enterprise servers using Ed25519 or RSA-SHA2 PEM private keys, or times out after 120 seconds when listing large ERP directories.

✅ Zetaleap Edge Architecture

Store your SSH Private Key (PEM) or password profile once in Zetaleap SFTP Vault, then call deterministic REST endpoints (or import the Zetaleap SFTP Custom Connector) from Power Automate with a single Bearer token.

1

Create a Connection Profile in Zetaleap SFTP Gateway

Open the Zetaleap SFTP Vault (/sftp), click "New Connection", choose SFTP (Port 22), select "SSH Private Key (PEM)", and paste your RSA or Ed25519 private key. Assign a clean slug such as erp-prod.

2

Generate a Dedicated Personal Access Token (PAT)

Navigate to My Profile -> API Tokens and generate a scoped token (zl_...). Zetaleap hashes tokens with SHA-256 and isolates your SFTP connection profiles strictly to your account.

3

Import the Zetaleap SFTP Custom Connector or Add an HTTP Action

In Power Automate, either import /api/openapi/sftp.swagger.json under Custom Connectors, or add a standard HTTP GET action to list remote directory files in milliseconds without TCP handshake overhead inside your flow.

Power Automate HTTP Action — List Remote SFTP Directory
GET https://zetaleap.com/api/sftp/erp-prod?path=/outbound/invoices
Authorization: Bearer zl_your_personal_access_token
4

Download or Archive Files Directly to Cloud Vault

Loop through target_dir_files in Power Automate (filtering is_directory eq false) and download each file via /api/sftp/{companyId}/download, or configure an automated Cron Sync Schedule in Zetaleap to mirror files to Zetaleap Storage Vault automatically.

Power Automate HTTP Action — Download SFTP File
GET https://zetaleap.com/api/sftp/erp-prod/download?file=/outbound/invoices/INV-2026-001.xml
Authorization: Bearer zl_your_personal_access_token