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

C# - Check if unix folder exists

I need to verify that a unix folder exists, from my C# application using SharpSsh. I thought of trying this: SshExec.RunCommand("-d " + folder) But the result is always '2' regardless if the folder is there or not. I could implement something…
Yoav
  • 2,077
  • 6
  • 27
  • 48
0
votes
2 answers

Unix / SharpSSH - sshExec.RunCommand(@"chmod 666...) isn't changing file's permission

I'm using SharpSSH to upload files to a remote machine: public override void WriteFile(string directoryName, string fileName, string localFilePath) { sftp.Put(localFilePath, directoryName + "/" + fileName); } The problem is that the file's…
Yoav
  • 2,077
  • 6
  • 27
  • 48
0
votes
1 answer

SharpSSH - How to set permissions when using Sftp.Put

I'm using SharpSSH to write files to a unix machine. The files are supposed to be read and then deleted up by another application which resides on the unix machine. The problem is that the unix application does not have rights to delete the file. I…
Yoav
  • 2,077
  • 6
  • 27
  • 48
0
votes
1 answer

Do we need a client to accept SFTP file transfers on the client system?

Please forgive if this is a basic question. I'm working SFTP file transfer using c# (SharpSSH) and I just want to know whether we need to have a client on the other system to recieve the files. Please suggest where I can get the relevent…
Chandra Eskay
  • 2,163
  • 9
  • 38
  • 58
0
votes
1 answer

JSchException verify: False C# .NET Scp SSH

I want to connect to remote server to upload some files via SCP/SSH. I am using SharpSSH for this but it doesnt work. Everytime the ScpClint wants to connect i get the JSchException verify: False. Here is my code: Scp scpClient = new…
Markus
  • 23
  • 1
  • 3
0
votes
3 answers

SFTP SSH.NET DLL instead of SharpSSH

I was seeking for a free DLL for .net to handle SFTP connections. I found out this project SharpSSH, but it lacks of documentation. I spent a lot of time to figure how the dll works. I created a test project and I started to test different…
billybob
  • 2,859
  • 6
  • 35
  • 55
0
votes
1 answer

SSH connection through Tamir.sharpSsh is not creating

I have made an application, which connects to the device using SSH connection as we do using PUTTY software. In my application I have used Tamir.sharpSsh C# library.It gives an exception at making SSH connection. I don't know that either it is a…
Azeem Akram
  • 223
  • 6
  • 9
  • 21
0
votes
2 answers

Adding DLL as a reference to my SharpSSH C# project

I have downloaded SharpSSH Binaries from the link. When i extracted it i found 3 .DLL files (and also a EXE file). 1.) DiffieHellman.dll 2.) Org.Mentalis.Security.dll 3.) Tamir.SharpSSH.dll I need to add these as Referece to the project. I need to…
Illep
  • 16,375
  • 46
  • 171
  • 302
0
votes
2 answers

How to run command from a SFTP server programmatically using SharpSSH?

i use Tamir SharpSSH everything is working but i need to run command with c# code i put file server but i need to run command for works anybody know this ? SshTransferProtocolBase sshCp; const string sftp_host = "xxx"; const string sftp_user =…
omer oruc
  • 11
  • 3
0
votes
2 answers

Get list of filenames from a remote directory FTP SSH

I need to get the list of all the filenames through SFTP with VB. I'm trying to place it in an ArrayList, but unsure on the commands to use.. Public Shared Function Retrieve_Directory_list(ByVal strHost As String, _ …
dright
  • 613
  • 1
  • 9
  • 19
-1
votes
3 answers

Exception of type 'Tamir.SharpSsh.jsch.SftpException' was thrown

Im able to connect to the sftp server am able to get the list of files in "pickup" directory. But I can't download any of those files. Here is my code: try { sftp.Get(txtRemotePath.Text + txtFixedFileName.Text, txtLocalPath.Text +…
AbeerAhdab
  • 66
  • 1
  • 8
-1
votes
1 answer

Tamir SharpSSH not able to connect again. error "SSH_MSG_DISCONNECT: 2 Too many users for this IP"

I am facing strange issue in Tamir SharpSSH while connecting it. first time when I connect SFTP using below code, it connect successfully. but when this method calls again it breaks into this error : SSH_MSG_DISCONNECT: 2 Too many users for this…
-1
votes
2 answers

How to move a file from one folder to another folder on a remote server using SharpSsh and C#

How to move a file from one folder to another folder on a remote server using SharpSsh? I'm trying to move a file that is in a folder on the server to another server folder. I'm getting: ERROR: No se pudo encontrar el archivo…
-1
votes
2 answers

SharpSSH - Get partial contents of file?

I'm new to SFTP and recently started using WinSCP at my work. We authenticate to the SFTP server using a private key. We are building an error-log parser that fetches the error-log of our server through WinSCP once in a while (every 10 seconds or…
Mathias Lykkegaard Lorenzen
  • 15,031
  • 23
  • 100
  • 187
1 2 3 4 5 6
7