Share via


Do microsoft support for SFTP in .NET framework.

Question

Tuesday, April 24, 2018 7:18 AM

I am not able to connect to SFTP customer site from C# windows application to upload/download files. By using 3rd party tools it is achivable and able to upload/download files using C# windows application.

I need help to connect SFTP site for upload/download files without using 3rd party tools using .NET Framework.

All replies (1)

Wednesday, April 25, 2018 7:46 AM

Hi Unattainbale,

Thank you for posting here.

As I know, .net only provide SFTP namespace which related to SFTP. It does not provide library like FtpWebRequest class of FTP to upload and download. Here is the MSDN document of SFTP namespace for your reference.

https://msdn.microsoft.com/en-us/library/sftp.aspx

If you want to upload and download file via SFTP, I suggest to use SSH or WinSCP.

You could download the source file from code project for reference.

SSH

https://www.codeproject.com/Tips/1111060/Upload-File-to-SFTP-Site-with-Csharp-in-Visual-Stu

WinSCP

https://www.codeproject.com/Tips/769049/sFTP-and-NET

Best Regards,

Wendy

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].