We help IT Professionals succeed at work.

How to complete a SFTP transfer from a server Using C#

I am writing an application that needs to make an FTP call to one server and is required to use SFTP to download a specific file from a given IP address on their local network. The transfer must be done in SFTP format because there is a firewall that will block any direct FTP transfer attempts to this server. Could someone let me know how one would go about downloading a file from a server using FTP and SFTP? (I am new to C# and have never completed a task using either of these requirements.) Any help that you could provide would be greatly appreciated.
Watch Question

You'll need a third-party component to do SFTP in visual studio... unless you are confusing SFTP with FTPS.  You can do FTPS with the native component.
Here is an open-source FTP and SFTP client in C# along with an article called "SFTP file transfers in .NET". Hope you find it useful.


Explore More ContentExplore courses, solutions, and other research materials related to this topic.