web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / SFTP Connector Bad Gat...
Power Automate
Answered

SFTP Connector Bad Gateway

(0) ShareShare
ReportReport
Posted on by 41

I am trying to connect to a vendor's SFTP site using Power Automate, but keep getting a Bad Gateway error

I connect with no problems using winscp.

I have entered the address, username, and port as provided by the vendor.

The private key is an open SSH private key and I copied it, in full, to the connector. This seems to be fine, since if I change it at all, I get a key error.

I have tried turning fingerprint verification off as well as copying the fingerprint in a variety of formats from winscp.
How do I avoid the bad gateway?
I've seen this question on several old threads, but no answers.

Categories:
  • Verified answer
    lizzyC Profile Picture
    41 on at

    I figured this out on my own. In the new designer, I could see more of an error message and several levels deep I found "openssh key type: ssh-rsa is not supported". And I found this SO answer.
    My key started with -----BEGIN OPENSSH PRIVATE KEY----- which is a format that is unsupported in the connector, apparently.  I used puttygen to convert it to a format that begins -----BEGIN RSA PRIVATE KEY----- and it worked great.
    To generate: I had already generated a .ppk in order to use my initial key in WinSCP. I loaded that .ppk into puttygen then clicked Conversions -> Export OpenSSH Key. This created the appropriately formatted key which I copied, in full, to the private key area of the connector.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 271

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard