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

Community site session details

Session Id :
Power Automate - Using Connectors
Suggested Answer

SFTP - SSH Connection

(0) ShareShare
ReportReport
Posted on by
AnHello
 
I am attempting to connect to a SFTP folder. I was able to connect using Filezilla, so I know it works
 
I have converted the putty private key to Open SSH so it starts with Begin RSA private key. Ive disabled host key validation. Still getting an error that I cant connect, and it is saying invalid private key file. 
 
For what its worth, the owner of the SFTP tells me they can see me logging in. 
 
Sent me this message: 

Hi,

From the logs it looks as though the sftp tool is attempting a connection other that SFTP.  Our servers are locked to SFTP only.

 

error: … refusing non-sftp session [postauth] → The client opened a non-SFTP session (shell/pty/exec/scp-style) which is not allowed for this user.

 

Any insight here? I am at a loss of what to do. I know the keys work, with the connection via Filezilla. They say they see me logging in and is failing post auth

 

 
 
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    52,569 Super User 2025 Season 2 on at
    SFTP - SSH Connection
     
     
    if you have not already. see if that helps

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey
  • lbendlin Profile Picture
    8,474 Super User 2025 Season 2 on at
    SFTP - SSH Connection
    There have been numerous service advisories for that connector recently, multiple times per week.  Wouldn't be surprised if you are affected by them.
  • Suggested answer
    Gerard Verbruggen Profile Picture
    19 on at
    SFTP - SSH Connection
    Hi,
     
    I had exactly the same issue and after a lot of googling, chatGPT and contact with Microsoft I was able to fix this. What you need to do:
     
    First of all: Do this on make.powerautomate.com and not on make.powerapps.com
    Second: Create the flow, add a SFTP-SSH connection and then create the new connection from there. Do not try to first create the connection.
    Third use the RSA key that looks like:
    -----BEGIN RSA PRIVATE KEY-----
    blablabla
    -----END RSA PRIVATE KEY-----
     
    And, in my case, the issue was solved.
     
    Hope this helps !
     
    Cheers,
    Gerard

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 489 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 479 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 271

Last 30 days Overall leaderboard

Featured topics