Solved

SFTP using C#.net 3.5

Posted on 2011-09-23
3
773 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

628 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