
Announcements
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.
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.