Main » 2014»August»2 » SFTP Download, Upload and Delete File using SharpSSH library
1:58 PM
SFTP Download, Upload and Delete File using SharpSSH library
In this tutorial I have used SharpSSH for downloading, uploading and deleting file from remote SFTP..
Code use in video is mentioned below:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tamir.SharpSsh;
using System.Collections;
using System.Windows.Forms;
using System.IO;
using Tamir.SharpSsh.jsch;
namespace SFTPConnectSample
{
class Program
{
static void Main(string[] args)
Trying to use your solution but I'm getting an error on the line: Sftp sftp = new Sftp(....
I entered my own SFTP details in. I also got the same error with your details.
The error is:
Locating source for 'c:\Users\Harish\Downloads\SharpSSH-1.1.1.13.src\SharpSSH-1.1.1.13.src\SharpSSH\Sftp.cs'. Checksum: MD5 {ac f7 a2 bc b3 6c 5d 1e 10 3f a1 16 d 7d 29 e2} The file 'c:\Users\Harish\Downloads\SharpSSH-1.1.1.13.src\SharpSSH-1.1.1.13.src\SharpSSH\Sftp.cs' does not exist. Looking in script documents for 'c:\Users\Harish\Downloads\SharpSSH-1.1.1.13.src\SharpSSH-1.1.1.13.src\SharpSSH\Sftp.cs'... Looking in the projects for 'c:\Users\Harish\Downloads\SharpSSH-1.1.1.13.src\SharpSSH-1.1.1.13.src\SharpSSH\Sftp.cs'. The file was not found in a project. Looking in directory 'C:\Program Files\Microsoft Visual Studio 11.0\VC\crt\src\'... Looking in directory 'C:\Program Files\Microsoft Visual Studio 11.0\VC\crt\src\vccorlib\'... Looking in directory 'C:\Program Files\Microsoft Visual Studio 11.0\VC\atlmfc\src\mfc\'... Looking in directory 'C:\Program Files\Microsoft Visual Studio 11.0\VC\atlmfc\src\atl\'... Looking in directory 'C:\Program Files\Microsoft Visual Studio 11.0\VC\atlmfc\include'... The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: c:\Users\Harish\Downloads\SharpSSH-1.1.1.13.src\SharpSSH-1.1.1.13.src\SharpSSH\Sftp.cs. The debugger could not locate the source file 'c:\Users\Harish\Downloads\SharpSSH-1.1.1.13.src\SharpSSH-1.1.1.13.src\SharpSSH\Sftp.cs'.