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
1
vote
1 answer

How to distinguish a directory in SFTP listing retrieved using SharpSSH?

I need to recursively download files from the server to SFTP by SharpSsh. But I do not understand how to determine that the file name or the directory. Now I do so static void recDir(string remotePath, string localPath) { Sftp _c =…
Alix Reinel
  • 145
  • 10
1
vote
1 answer

Algorithm negotiation fail error when using SharpSSH

Problem: When i try to connect by sharpssh catch this error Algorithm negotiation fail I generate public key and ssh-2 RSA private Key with password. Then export to OpenSSHH and use it to connect To connect i tried: if (input.IdentityFile != null)…
scascales
  • 11
  • 5
1
vote
2 answers

Upload to FTP server C# using Tamir.SharpSSH

Im able to connect with my sftp server and I'm sure of it because I get the list of files of my server and it passes correct list. But I cant upload file to a folder in mysftp server. Here is my code: private static void FileUploadUsingSftp(string…
user3868544
1
vote
1 answer

Download multiple files sharpSSH

I have 6 files I want to copy from Windows to Linux: input.dat, image1.tif, image2.tif, image3.tif, image4.tif, image5.tif I'm using SharpSSH, now I know how to copy a single file, but my question is there anyway I can copy multiple files using…
Mowglin
  • 13
  • 3
1
vote
2 answers

How to get a Stream object for a remote file on SFTP using SharpSSH library?

How can I get a Stream object to read the file that is on SFTP share? I see that there is functionality to download a file from SFTP using Sftp class, but I need a Stream object to be able to show the download progress.
Alexander
  • 11
  • 1
  • 2
1
vote
2 answers

Is Tamir.SharpSSH Windows Server 2012 Compatible?

We recently moved an application that uses Tamir.SharpSSH from a Windows 2003 server to Windows Server 2012. While testing the SFTP functionality of our app we received this error: {"Session.connect: System.NullReferenceException: Object reference…
Tikhon
  • 947
  • 2
  • 18
  • 32
1
vote
1 answer

Validating fingerprint in SharpSSH

I am using Tamir.SharpSSH to make SFTP connections. 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 have with the…
1
vote
1 answer

Does SharpSSH v1.1.1.13 support .Net framework 4.5?

I have been using this library with .Net framework 3.5 and it was working perfectly. Then I start a new project with .Net framework 4.5 and it stop working. It throws a null reference exception when connecting to an SFTP. This is the exception…
robert
  • 609
  • 6
  • 14
1
vote
1 answer

C#, How to hande SSH timeout Exception with SharpSSH

I am trying to connect to a remote server to using Sharp SSH. The timeout exception I receive is a network based exception. I want the program to be more robust even if the network has problems, or if the server simply isn't available. The time…
Joe C
  • 184
  • 1
  • 15
1
vote
1 answer

Sftp exception when trying to get file names with SharpSSH

I am using SharpSsh library to get file names from sftp server. Connection is OK but I get exception of type 'Tamir.SharpSsh.jsch.SftpException' in this code: _sftp.GetFileList("/outgoing") When I was testing my code on my local sftp server on…
1
vote
0 answers

MySQL over SSH "access denied for user 'root'@'localhost' (using password yes)"

I have a remote server hosting an application with a MySQL Database attached. I am trying to write a program to automated a process on the server. This required me to make a connection over SSH then connect and query the MySQL database. Using Putty…
Jonoh89
  • 35
  • 6
1
vote
0 answers

Access user computer or hosting server directory from sftp

I have a sftp server and I developed a interface website between users and sftp files using c#.NET and SharpSSH for download,upload file operations etc Here is my problem: downloading a file from sftp to my computer works perfect. It copies the file…
user741319
  • 625
  • 3
  • 9
  • 18
1
vote
1 answer

Sftp from SharpSSH and public key

I am using SharpSSH's Sftp class to upload files. Someone has requested that I enable RSA authentication. I can't find an info how how to do this. What do I need to do in order to support public key authentication in SharpSSH? All I currently…
madmik3
  • 6,975
  • 3
  • 38
  • 60
1
vote
1 answer

Cannot change sftp remote directory using SharpSSH in C#?

I've tried every combination of a path string that I can think of but still I get back "The requested file does not exist"? I've searched the internet for the past few hours and I cannot find an example. Can anyone point out what I'm doing wrong. …
zeencat
  • 589
  • 1
  • 5
  • 26
1
vote
2 answers

Upload Download files from FTP site using SFTP

I need to know a way to connect to a FTP site through SFTP. I am using SharpSSH and i am unable to find an example to do the program. For now, i have downloaded the SharpSSH .DLL files and added as references. Now i need to write the code where i…
Illep
  • 16,375
  • 46
  • 171
  • 302