Skip to main content

Notifications

Power Automate - Using Connectors
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

 

  • DanJ Profile Picture
    DanJ 8 on at
    Re: Details: BadGateway Error in SFTP - SSH Connector

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

  • _copperRaven Profile Picture
    _copperRaven 3 on at
    Re: Details: BadGateway Error in SFTP - SSH Connector

    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.

  • Re: Details: BadGateway Error in SFTP - SSH Connector

    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>

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard

Featured topics