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 / Details: BadGateway Er...
Power Automate
Unanswered

Details: BadGateway Error in SFTP - SSH Connector

(0) ShareShare
ReportReport
Posted on by

I'm trying to migrate a Power Automate app to a new Ubuntu 22.04 VM (in an azure tenancy), but I can't establish a  SFTP - SSH connection to the new VM.  

 

I can SSH to the VM using the username and the .pem private key credentials from the same PC (bash on WSL2).  I've opened port 22 temporarily but still I can't get the SFTP connection work. 

 

Feels like I'm missing something obvious?  Any help appreciated!

 

 

benzo_0-1673400239872.png

 

Categories:
I have the same question (0)
  • BA-23070704-0 Profile Picture
    on at

    Using https://blog.neilsabol.site/post/microsoft-ms-flow-sftp-connector-tips-tricks-errors/ i have the following error (with the key details deleted).  So perhaps some sort of permissioning error?

     

    1. error: {message: "Permission denied (publickey)."}
      1. message: "Permission denied (publickey)."
    2. message: "Permission denied (publickey).\r\nclientRequestId: <key deleted>
  • _copperRaven Profile Picture
    3 on at

    I have this same issue

    {message: "Permission denied (publickey)."}

     

    I'm running an on-prem server that has OpenSSH. winSCP works fine. i've tried several different iterations of .pem files and putty files with and without passphrase works everytime with winSCP but never in SFTP-SSH.

  • DanJ Profile Picture
    8 on at

    I'm having the Permission denied (publickey) error too with BadGateway. With mine though I have 4 flows all using the same SFTP-SSH connector, only one is failing this way. They're all doing the same thing in the same folder, just with different files.

    I can't think why that would happen.

    I have a feeling that if I recreated the flow exactly it would work...

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 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard