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 :
Small and medium business | Business Central, N...
Suggested answer

Access Client SFTP server using SSH key instead of Password

(3) ShareShare
ReportReport
Posted on by 18
Hi Everyone,

I have developed integration between BC and SFTP. I have written C# code to fetch SFTP server and upload file in it using username and password. I am using this C# code as Azure function APP API in BC and added code to get data from BC and using this function app sending file to SFTP server. 
This is working correctly with sftp username and password. But the problem is now client have changed their logics and only password is not enough to access their SFTP server. 
They have provide me SSH Private Key and they want me to access their SFTP sever using that SSH key.

Does any one know how can I achieve that. It will be really helpful for me. 

Is there any way to pass SSH key using Azure?

Thanks
I have the same question (0)
  • Suggested answer
    Jainam M. Kothari Profile Picture
    12,148 Super User 2025 Season 2 on at
  • Gerardo Rentería García Profile Picture
    23,590 Most Valuable Professional on at
    Access Client SFTP server using SSH key instead of Password

    Hi, good day
    I hope this can help you, and give you some hints.

    Dynamics 365 Business Central SaaS: save a file to an SFTP server – Stefano Demiliani

    Best Regards
    Gerardo

  • Suggested answer
    Khushbu Rajvi. Profile Picture
    19,182 Super User 2025 Season 2 on at
  • Suggested answer
    Ramesh Kumar Profile Picture
    7,519 Super User 2025 Season 2 on at
    Access Client SFTP server using SSH key instead of Password

    You're on the right track — integrating Business Central → Azure Function → SFTP — and now the client has switched from username/password authentication to SSH key-based authentication, which is quite common for security-conscious environments. Here’s how you can update your Azure Function (in C#) to support SFTP with SSH private key authentication, and how to securely manage the SSH key in Azure.

     

    Thanks, Ramesh

    If this was helpful, please check the "Does this answer your question?" box and mark it as verified.


     
  • Suggested answer
    YUN ZHU Profile Picture
    93,135 Super User 2025 Season 2 on at
    Access Client SFTP server using SSH key instead of Password
    Strictly speaking, this is not a BC problem. I suggest you submit this question to the Azure forum. I believe the experts there will give you better suggestions.
     
    Thanks.
    ZHU
  • Vahid Ghafarpour Profile Picture
    11,980 Super User 2025 Season 2 on at
    Access Client SFTP server using SSH key instead of Password
     
    If any of the responses helped resolve your issue, please take a moment to mark the best answer. This helps others in the community quickly find solutions to similar problems.

    To do this, simply click the "Does this answer your question?" button on the most helpful response and like the helpful posts. If your issue is still unresolved, feel free to provide more details so the community can assist further!

    Thanks for being an active part of the Dynamics 365 Community! 😊
     
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 3,761

#2
Sumit Singh Profile Picture

Sumit Singh 2,611

#3
YUN ZHU Profile Picture

YUN ZHU 1,975 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans