TechSapphire Monday, 2024-12-30, 9:11 PM
Site menu
Login form
News
Play Games
  • Deep Freeze
  • Ice Slide
  • Gyroball
  • Fat Fish
  • Bush Royal Rampage
  • 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)

    Read More>>

    Category: Programming | Views: 16978 | Added by: Admin | Tags: Tamir, File, SSH, sharpssh, Sharp, delete, upload, Download, SFTP | Rating: 0.0/0
    Total comments: 1
    1 christoffbotes  
    1
    Hi

    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'.

    Only registered users can add comments.
    [ Registration | Login ]
    Categories
    Programming [27]
    Tips for programming
    Security [2]
    Security Tips
    Google [1]
    Use google faster then ever you use
    Project [14]
    HTML [2]
    Electronics [0]
    Data Structure [0]
    Database [16]
    SQL SERVER
    SSRS [1]
    Sql Server Reporting Services
    Copyright MyCorp © 2024