Solved

SFTP using C#.net 3.5

Posted on 2011-09-23
3
729 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

759 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

20 Experts available now in Live!

Get 1:1 Help Now