.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Post New Web Links


Posted By:      Posted Date: October 01, 2010    Points: 0   Category :.NET Framework
I want to do SFTP using c#. how it can be done ??

View Complete Post

More Related Resource Links

Service to monitor SFTP location


Hi there,

I want to develop a service (may be Web / WCF / Windows) to monitor a SFTP location for excel files. As soon as any excel file arrives, service should be able to move it to some location and initiate another process.

My queries are:

1. Can we monitor SFTP using services? If not, what are the other ways to monitor.

2. Which service (Web / WCF / Windows) should I use? What could be the challenges?

Any help is highly appreciated. Thanks

How do I connect to SFTP without password from c#

Can anyone help me to connect to the ftp site from c# with following details. for example         I have private key located in c:\IT\abc.ppk         username: abcd         Server type:SFTP         there is no password         Logon Type: Interactive I can connect using above from filezilla. How do I connect from c#. Please give me some idea if anyone knows. Thanks JunaedBD    

Copy file from SFTP


Hi all,
I need to create an application which copies files from SFTP and paste them on my computer.

Can anyone please tell me how can I do this. I do not want to use any library of other providers like j* or others.


Class for SFTP in .Net Framework 4



Is there any SFTP class available in .NET framework 4.0? 

Thank you,


SFTP Free component developed in C#





i want to upload/download files from SSH server using SFTP. can anyone tell me Is there any free component available for SFTP?






class for sftp in .net 2.0

Is there any class available for SFTP in .net framework 2.0? If there is any provision availble in other frameworks
kindly mention in the answer?

how to write a SFTP client ,SFTP server in .net 2.0?is there any option to write it in vc++?

How to change the MS-FTP sample from FTP to SFTP




The FTPSample below from Microsoft is very helpfull to get my application to send a file via FTP to a server.

Now our company is moving from FTP to SFTP and I need to update my application to use not only FTP but also SFTP.


I don't want to use any (paid) 3rd party applications.


I did find the FtpWebRequest.EnableSsl Property but there must be something more than just setting this property to true.


Can someone explain me how to change or what to add to the current MS-FTPSample in VB so that I can also send via SFTP?


Thank you.




This is the MS sample for FTP which I need to get on SFTP:

Private Sub Upload(ByVal fileName As String, ByVal uploadUrl As String)

Dim requestStream

FtpWebRequest + sftp


Hi All,

I need a program that would download all csv files from an sftp location. I've the sftp host IP, user name, password and port details of the sftp location. I am able to login through Filezilla. But as I need to login programmatically, so that I can get a list of all files in the folder.

When the code works fine for a ftp request, it doesn't for an sftp request. Given below is my code to connect to the ftp uri.

FtpWebRequest FtpRequest = (FtpWebRequest)WebRequest.Create("ftp://myuri");
FtpRequest.Credentials = new NetworkCredential("username", "password");
FtpRequest.Method = WebRequestMethods.Ftp.ListDirectoryDetails;

My system admin says that there is no uri that could be given for sftp sites at all. Now, how can I go about this? Is there any third party tool available for this? If yes, suggest me some good ones.

Thanks in advance.







Can anyone give me some direction on how to create a SSIS Package that opens up SFTP/SSH (Ftp) and downloads files to SQL Server/HardDrive.

Now a regular FTP Task will now work if I am correct?

SSH/SFTP Communications in C#

I'm looking to get started implementing a SFTP handler in my application (.net 2.0) and so far I'm just not finding what I'm looking for. Seems like all the SSH/SFTP code and libraries out there are for the Linux crowd.

Can anyone point me in the right direction? Am I going to be making calls to a command-line SSH app, or is this something that's going to be doable with reasonable effort?

SFTP client library needed


Hi all!

Does anybody know any open source or commercial SFTP library with source code (c#)? I've been trying SharpSsh and found it very unstable and and very poor and durty written. So, I'd rather get another library than fixed the SharpSsh bugs.

What the lib should do: returns folders contents, download files (rather big - may be about 1GB or more), deletes files. Nothing more. Yes, there are several libraries on the marker, all of them look so cool :) The problem is to make right choice. 

Upload files to SFTP



i am facing  a problem in uplaoding files to SFTP...

can anyone supply me with the  code to transfer files to SFTP..



File transfers using HTTPS or SFTP?

Does .NET 3.5 framework support these transfers?  If so, could someone point me to a starting link where I can discover how to?

Thanks, Rob.

Does Microsoft provide any SSH Library for SFTP Connection implementation in VC++ using Visual Studi


I work on Visual Studio Extension Package created for Visual Studio 2003 & Visual Studio 2005, which is now migrated to Visual Studio 2008.

Our package adds capabilities to Visual Studio to create custom project using proprietary compilers. A project created under this product acts just like any other Visual Studio project.

With this package, users can develop applications on Windows, build them and then deploy the final object on destination servers using FTP session.

We need to enhance this product to implement SFTP connection feature for Secure File Transfer while moving the files to the server.

I would like to know whether Microsoft provides any SSH Library along with correspondings APIs to implement the SFTP Connection feature in VC++ with Visual Studio 2008.

Appreciate any help.

Please Note that, I had put this query on 'Visual Studio Extensibility' Forum, (http://social.msdn.microsoft.com/Forums/en-US/Offtopic/thread/1fddc1ae-c69d-4cfa-ba04-948f2b1a392a), which was then moved to 'Off-Topic Posts' by MSFT, as the query seemed to have little relationship with VSX.

Kindly guide me on the correct forum for better help if this que

Can SSIS do SFTP? and how?


I want to know whether SSIS can do SFTP. If yes, how does it work?




SFTP is converting text file format, now SSIS sees an empty file


Using BIDS that came with SQL Server 2008 R2, I created a text file import package.  I used files generated from my local machine for local testing.  However, I find that these files get their format changed after being SFTP'd to the data warehouse.  Not being able to visually see a problem with the text file to be imported, I copied it down to my local machine and compared to one generated at my machine.  Not until I chose "Show All Characters" in Notepad++ did I see the difference: my local file ends its lines with a carriage return-linefeed character, whereas the file that went through SFTP ends its lines with a linefeed character only.

I suspect there's something very basic going on here that I don't know.  I won't ask anybody to explain it, but I'm wondering if there's some way I can import both file formats.  The column numbers and lengths are identical, it's the just line ending character that's different and causing zero rows to get imported.  The only other thing I know to do is recreate my flat file connection, and I haven't even tried that yet.


C# Code to connect to SFTP servers


Please let me know the sample C# code to connect to SFTP servers for uploading and downlodding of files from that server.

Please also let me know is there any common API(licensed or Open Source) through which  I can acheive this without much hassle.


Ganesh Chellam Bangalore
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend