Questions tagged [sharpssh]

SharpSSH is a .NET framework library for connecting to and retrieving files from an SSH/SFTP server.

SharpSSH is a .NET framework library for connecting to and retrieving files from an SSH/SFTP server. SharpSSH has originally designed by Tamir Gal as a direct port from the Java library at Code Project.

As the SharpSSH has not been maintained in several years, it should not be considered for new projects, as it does not support the recent algorithms.

104 questions
0
votes
1 answer

Tamir SharpSSH sometimes constantly fails to download a file that is regularly pulled down by Filezilla

I am downloading files from a client's SFTP. When I do it from Filezilla it always succeeds in the standard way. On the other side, when I do it from our app, that uses Tamir SharpSSH library for SFTP communication, periods constantly emerge when…
Срба
  • 463
  • 3
  • 17
0
votes
1 answer

SharpSSh: RunCommand in SshExec is always returning an empty string

When Using SharpSSh and the SshExec class, I can't get the RunCommand to work, it always returns an empty string. When I debug the SharpSsh library it returns -1 when it tries to read the command from a stream. It works when I use the sftp class in…
RunCommand
  • 1
  • 1
  • 2
0
votes
0 answers

remove manual acceptance while connecting to sftp server using sharpSSH

A small question.. I have used sharpSSH to connect to SFTP server with "StrictHostKeyChecking" set to "yes". But, everytime I try to connect to a new SFTP server for the first time it asks me whether I want to trust a particular server finger print…
0
votes
1 answer

Veryfing fingerprints using SharpSSH while connecting to SFTP Server

I am using Tamir.SharpSSH to make SFTP connections in my .NET code. I have servers' host, port, username, password and servers' fingerprint. I am able to connect to the server without the fingerprint. Is there any way to match the fingerprint that I…
0
votes
2 answers

Running a command that produces no output with SharpSSH

I want to run a command using ssh. I am using the SharpSSH library, as in this example: using System; using Tamir.SharpSsh; class Program { static void Main(string[] args) { string hostName = "host.foo.com"; string userName =…
Paolo Tedesco
  • 55,237
  • 33
  • 144
  • 193
0
votes
2 answers

Executed python via SSH commands to raspberry pi (using Csharp and SharpSSH)

I have a problem with executing python script over ssh (using c# and SharpSSH). I have connection and can write simple commands like "startx" and "sudo shutdown ..." When I try to run a python script freezes the program and nothing happens. I have…
Lars90er
  • 1
  • 2
0
votes
0 answers

sharpssh didn't put files

I have next problem: when i try to copy files on SFTP server, nothing happens. I didnt get any error or exception, just nothing listing here: using System; using System.IO; using System.Collections.Generic; using System.Linq; using…
0
votes
1 answer

Reading from SshStream (SharpSSH) is only giving me a few lines

I am trying to use SharpSSH to use the "view" command in the shell to read a file remotely. I am able to access and view it, but it only returns about 120 lines or so before the form locks up with no exception being thrown. Here is my code: …
0
votes
1 answer

How to transfer memory stream object through Sharp SSH library?

I am creating a memory stream on run time var stream = new MemoryStream(); var writer = new StreamWriter(stream); writer.WriteLine("There could by any text over here...."); writer.Flush(); stream.Position =…
yrahman
  • 960
  • 5
  • 15
  • 33
0
votes
0 answers

Export csv file to sqlite 3 database using sharpssh and c#

Hi I am newbie to c# and sharpssh I am trying to export a csv file to sqlite3 database to external device called explor. I have managed to export csv file to local sqlite3 database and able to connect to database using sharpssh to external device…
preethi
  • 885
  • 5
  • 20
  • 39
0
votes
1 answer

running a unix command to go to a directory using SharpSSH in C#

I was using SharpSSH to connect to unix using C#. When i was trying to run the below command ssh.RunCommand("cd /home/directory"); (Provided this is a valid path) its not working. Some one please help me how to execute this command
0
votes
1 answer

SFTP in .NET (using only public certificate)

Is there any way that we can login to SFTP server without using password, but only by using the public certificate provided? I know that the client can connect if it has a private key file and the public certificate resides at the server. Here, the…
0
votes
1 answer

Vb.net connected with a Unix server by Sharpssh and wait for response

Hello I am conneted to an Unix server by sharpssh with : Imports Tamir.SharpSsh Imports Tamir.Streams Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim ssh As SshExec ssh…
0
votes
0 answers

Concurrent SFTP file transfer using c# and SharpSSH

I am using SharpSSH for uploading & downloading files via SFTP. It works with up to 2 connections at a time. Any more than this fails. Why won't it work with more than 2 connections at a time?
SmitaP
  • 21
  • 1
  • 2
0
votes
1 answer

C#: Tamir.SharpSsh unable to change directory in unix

I am currently making a File-Dialog-like form in C# that browses directories on a unix server. I have a bit of a trouble getting the 'cd ..' command to work. Here is an example of my code var sshExec = new SshExec("192.x.x.x", "user", "pass"); …
Kostya Sydoruk
  • 144
  • 2
  • 15