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:
I have the same question (0)
  • 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 124 Super User 2026 Season 1

#2
Ellis Karim Profile Picture

Ellis Karim 52 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 50

Last 30 days Overall leaderboard