Solved

File download from SFTP server

Posted on 2013-01-04
6
812 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
[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
  • 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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Now that Expression Web 4.0 (http://www.microsoft.com/expression/products/Upgrade.aspx) is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
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 properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

735 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