Mocking

Hi, I am using dependency injection to inject SftpClient into my code. Since there are no interfaces defined in this project I have written a wrapper/proxy around SftpClient so that I can inject a...

Id #2792 | Release: None | Updated: May 12 at 10:22 AM by mattaustin | Created: May 12 at 10:22 AM by mattaustin

Command "sed" is not functional

Command "sed" is not functional: cmd = sshClient.RunCommand("sed -i 's/VARS=.*/VARS=12/g' /tmp/dataconf.cfg #") Threading.Thread.Sleep(2000) cmd = sshClient.RunCommand("save #") Threading.Thread.Sl...

Id #2790 | Release: None | Updated: Apr 26 at 3:53 PM by rubendario1979 | Created: Apr 26 at 3:53 PM by rubendario1979

SftpPermissionDeniedException: %RNTO-bad%

Hi, I am utilizing SSH.NET library for SFTP file processing and even though user has permission to rename file (move), I get below exception. %RNTO-bad% (DelegateServiceHandle.Start => <>c__Displa...

Id #2789 | Release: None | Updated: Apr 26 at 8:36 AM by spidercode | Created: Apr 26 at 8:36 AM by spidercode

sftpClient and Exists method

I have wrote this simple test in MsTest: [TestMethod] public void TestExist() { // arrange var filename = "filename.txt"; var file = new MemoryStream(this.GetByt...

Id #2783 | Release: None | Updated: Mar 4 at 8:54 AM by marianoc84 | Created: Mar 4 at 8:54 AM by marianoc84

Logon to sshd fails: Update from v2013.4.7 to 2014.4.6-beta2 helps

I had the latest stable release installed (v2013.4.7) and tried to login to OpenSSH_6.6.1p1 on Linux. This failed with the exception: Renci.SshNet.Common.SshConnectionException "An established con...

Id #2782 | Release: None | Updated: Mar 3 at 1:39 PM by Praktikant | Created: Mar 3 at 1:39 PM by Praktikant

Server version '1.5' is not supported.

Hello, when trying to connect using latest version and using c# code we are having sshconnectionexception issue with an error "Server version '1.5' is not supported." is there any solution for suc...

Id #2780 | Release: None | Updated: Feb 24 at 12:15 PM by jackabdallah | Created: Feb 24 at 12:15 PM by jackabdallah

Patch 17236 SCPClient issues

Including this patch solved the issues I was having uploading and downloading from an Android device. I believe the issue was the client was including quotes in the file names. I don't know how, o...

Id #2773 | Release: None | Updated: Feb 1 at 5:30 PM by mg07647 | Created: Feb 1 at 5:30 PM by mg07647

Race condition in Session.cs

Hello, I've discovered a race condition within the session.cs class. The issue occurs when attempting to connect via an SshClient and the subsequent session.Connect function call. After authenti...

Id #2770 | Release: None | Updated: Jan 22 at 12:17 AM by jjv0077 | Created: Jan 22 at 12:17 AM by jjv0077

how do i import this module?

I have the Renci.SshNet.zip downloaded. And extracted and moved the file to 'C:\Users\name\Documents\WindowsPowerShell\Modules\Renci.SshNet' But trying to import gives me the below error C:\windo...

Id #2767 | Release: None | Updated: Feb 1 at 5:22 PM by mg07647 | Created: Jan 17 at 7:39 PM by okram999

Cannot download to a MemoryStream

Need to add the ability to download something to a Memory stream, a FileStream is not always the desired Stream to use.

Id #2762 | Release: None | Updated: Jan 2 at 4:37 PM by DevonCustard | Created: Dec 18, 2015 at 2:56 PM by Joshua_THE_G