Solved

File download from SFTP server

Posted on 2013-01-04
6
811 Views
Last Modified: 2013-01-22
How to download a file from SFTP server using Console Programing? I have a url like sftp.abc.com and Id like 12345 and password like abc@34b, How can I connect Sftp server to download a file automatically.
0
Comment
Question by:dynamicweb09
  • 3
  • 2
6 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 375 total points
ID: 38746321
What operating system are you using?  What programming language?  Just C#?
0
 
LVL 1

Author Comment

by:dynamicweb09
ID: 38746411
Operating System Im using is Xp and programming language is C# Console Application
0
 
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 375 total points
ID: 38747154
SFTP is not part of Windows XP.   PSFTP is part of PUTTY.  Info here: http://java.sg/how-to-sftp-from-windows-command-prompt-using-psftp/
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 16

Assisted Solution

by:AlexPace
AlexPace earned 125 total points
ID: 38747681
You could use a 3rd-party SFTP control... the Microsoft libraries can only do FTP and FTPS.
0
 
LVL 1

Author Comment

by:dynamicweb09
ID: 38749888
Can anyone give me any example code to download a file from sftp server.
0
 
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 375 total points
ID: 38749904
This page http://www.eldos.com/sbb/sftp.net/sftp-net-cs-sample.php claims to have what you want.  But the cheapest version appears to be $294USD.

You can also get the source code for PUTTY version but it's in C, not C#.NET.  http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html  You should probably try the precompiled versions first to make sure it does what you want it to.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Colabnet Subversion - move repository 6 59
Python  -  List Iteration output problem 2 74
What xml editor to use. 8 98
Detailed steps to upload 6 52
In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…

829 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