?
Solved

File download from SFTP server

Posted on 2013-01-04
6
Medium Priority
?
824 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 84

Accepted Solution

by:
Dave Baldwin earned 1125 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 84

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 1125 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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 16

Assisted Solution

by:AlexPace
AlexPace earned 375 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 84

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 1125 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

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…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
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…
Suggested Courses

765 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