Solved

SFTP using C#.net 3.5

Posted on 2011-09-23
3
730 Views
Last Modified: 2012-05-12
Hi,

I had to upload file to a sftp server using C# 3.5

kind of confused when googled the same due to different views.
So,Thought this is the best and realible place to ask for.

Can any one suggest me if i can do that using VS2010  OR do i have to use 3rd party tools.?
Pls give me an example . appreciate that

Thanks
0
Comment
Question by:kishan66
3 Comments
 
LVL 13

Accepted Solution

by:
jonnidip earned 167 total points
ID: 36588538
Sftp (SSH File Transfer Protocol) is not native, but there are free libraries you can use.

Examples of SSH implementation: http://www.codeproject.com/KB/IP/sharpssh.aspx
http://sourceforge.net/projects/sharpssh/

You may also look at FTPS (ftp over SSL): http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.enablessl.aspx


Regards.
0
 
LVL 9

Assisted Solution

by:parparov
parparov earned 166 total points
ID: 36588764
If call to an external application is good enough for you, you can use the pscp or psftp programs provided along with putty application:

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
0
 
LVL 16

Assisted Solution

by:AlexPace
AlexPace earned 167 total points
ID: 36588790
Here is a commercial SFTP library you can use: http://www.weonlydo.com/SFTP/sftp-activex-component.asp

Another possibility is to use an SFTP client that can be controlled via a COM interface... here is one: http://www.robo-ftp.com/download/

Another possibility is to use an SFTP client that can be launched wih command line parameters that either tell it which files to transfer or specify the name of a script that will transfer the correct files.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now