Solved

File download from SFTP server

Posted on 2013-01-04
6
802 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 82

Accepted Solution

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

Author Comment

by:dynamicweb09
Comment Utility
Operating System Im using is Xp and programming language is C# Console Application
0
 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 375 total points
Comment Utility
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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 16

Assisted Solution

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

Author Comment

by:dynamicweb09
Comment Utility
Can anyone give me any example code to download a file from sftp server.
0
 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 375 total points
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

728 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

9 Experts available now in Live!

Get 1:1 Help Now