Solved

SFTP using C#.net 3.5

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

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!
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

710 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