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

Linux Command Doesn't work from .NET execution when using SharpSSH library

I'm trying to run a very simple command in Linux via .NET using the SharpSsh .NET library. The code doesn't throw any exceptions, and it's still not working. When I run the sudo php /www/data/{directory}/scripts/create_file.php command from the…
JustBeingHelpful
  • 18,332
  • 38
  • 160
  • 245
0
votes
2 answers

Can't get SharpSSH to connect via FTP

I'm having trouble making a secure FTP connection using SharpSSH. Up to now I've been using the DOS command line app MOVEit Freely to make the connection, and it connects fine: C:\> ftps -user:ABC -password:123 xxx.xxx.xxx.mil However, when I try…
gfrizzle
  • 12,419
  • 19
  • 78
  • 104
0
votes
2 answers

can not rename remote file using sharpssh

i wrote like the following code. but this code is not available... when i execute, occur. if anyone knows something, give me advice pls... thanks in advance. void sftp_OnTransferEnd(string src, string dst, int transferredBytes …
Yamachan
  • 71
  • 1
  • 2
  • 10
0
votes
2 answers

SharpSSH .. how to determine if a process is finished

Im using SHARPSSH SshShell, i was able to connect to my unix box .. i was able to issue my commands (although having a problem verifying the result) I was able to issue a TAR command , my problem is determinining if the tar is finished.. is there…
Dennis
  • 11
  • 1
0
votes
0 answers

Tamir SharpSSH - Not able to identify if the response stream is empty

So i'm using Tamir Sharp ssh library to send some command to the remote AIX machine and fetching some response. But i"m not able to read response in the scenario where i give wrong command and the response stream is null and their is no provision…
shrot
  • 145
  • 1
  • 9
0
votes
1 answer

SharpSsh - script runs twice in csh and ksh

i'm running a script from ASP.NET/C# using SharpSsh. I realize when the script runs and i do a ps -ef grep from unix, i see the same script running twice, one in csh -c, and the other with ksh. The script has shebang ksh, so i'm not sure why a copy…
Templar
  • 63
  • 1
  • 3
0
votes
0 answers

Bad Data error message during sftp

I am having an issue with sftp.put in sharpssh. I am getting this error message: Session.connect: System.Security.Cryptography.CryptographicException: Bad Data. at…
user7957951
0
votes
2 answers

SFTP Multiple Async Downloads using Tamir.Sharpssh

I am working on a tool to download files from SFTP, 2 at a time. I am using Tamir.Sharpssh to connect to the SFTP, and I thought it would be do-able by using async and await. When I run the program, it finishes with no errors but I am not seeing any…
OHHO
  • 143
  • 2
  • 9
0
votes
1 answer

SharpSSH - SSHExec, run command, and wait 5 seconds for data!

I have this code: using System; using System.Text; using Tamir.SharpSsh; using System.IO; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { SshExec exec = new…
slowkvant
  • 309
  • 1
  • 9
  • 12
0
votes
0 answers

Unable to connect to SFTP on Windows Server 2003 using C#

Really hope you can assist with my query. I am currently creating an application to integrate a SFTP server with NetSuite's file cabinet. All my code works fine when executing the application from my machine (Windows 7), but when I execute this…
Arif WB
  • 186
  • 1
  • 13
0
votes
1 answer

error:Algorithm negotiation fail with SharpSSH

I have created a simple program running a connection and download from an SQL Server. To access the source of data i use an SSH with private/public keys. Before it has worked fine but after updating SQL Server I got this error. error:Algorithm…
juanitowgm
  • 43
  • 2
  • 8
0
votes
3 answers

SharpSSH Progress and Rename

Using the library to connect to a remote server and copy a file. I have the process working fairly well but have some smaller things which I cant seem to resolve as documentation for the library is fairly thin. I have two routines working. One using…
sinDizzy
  • 1,300
  • 7
  • 28
  • 60
0
votes
2 answers

SharpSSH exception when trying to upload file to SFTP remote server

So this is my code, i basically copied and pasted from SharpSSH website. Sftp oSftp = new Tamir.SharpSsh.Sftp(_ftpURL, _UserName, _Password); oSftp.Connect(_Port); oSftp.Put(LocalDirectory + "/" + FileName, _ftpDirectory + "/" +…
Vibol
  • 615
  • 1
  • 8
  • 25
0
votes
1 answer

SshExec RunCommand returns with exit code -1 after 12 seconds (timeout?)

Trying to use Tamir.SharpSsh.SshExec to execute a longer running (~30sec) sh script. (The script runs well on the target machine.) After ~12sec the RunCommand call returns with code -1. It looks like a timeout, but I could not figure out how to…
Gaspar Nagy
  • 4,422
  • 30
  • 42
0
votes
2 answers

Not able to connect to sftp using Tamir.sharpSSH

I am trying to connect to a sftp server using Tamir.shaprSSH. My sftp server right now is a test server and is an IP address. I can connect to it using FileZilla but not using my code. I tried to connect to another sftp server which my production…
user5462700
  • 11
  • 1
  • 1