Quantcast
Channel: SSH.NET Library
Viewing all 2955 articles
Browse latest View live

Commented Unassigned: Server response does not contain SSH protocol identification [2800]

$
0
0
Getting an error Renci.SshNet.Common.SshConnectionException: Server response does not contain SSH protocol identification. at Renci.SshNet.Session.Connect() at Renci.SshNet.BaseClient.Connect() when SFTP server was configured not to return server version.

Would be nice if there was a way to disable version check, possibly configurable?
Comments: ** Comment from web user: ceciliaschultz **

I have s similar problem.
My application uses Renci.SShNet.dll to ftp a file nightly. Approximately every 3 weeks it fails with the error "Server response does not contain SSH protocol identification", which is where the library is attempting to do a socket read of the version:

public void Connect()
{
//.......

// Get server version from the server,
// ignore text lines which are sent before if any
while (true)
{
var serverVersion = string.Empty;
SocketReadLine(ref serverVersion, ConnectionInfo.Timeout);
if (serverVersion == null)
throw new SshConnectionException("Server response does not contain SSH protocol identification.");
versionMatch = ServerVersionRe.Match(serverVersion);
if (versionMatch.Success)
{
ServerVersion = serverVersion;
break;
}
}

//....
}


So when it fails, I have to manually run it the following morning, (with no problems). Then the job continues fine for abut 3 weeks, then it fails again, and so on...

I cannot imagine why it would fail every so often... and then it works fine without doing anything....


New Post: tnsping is not working via SSH.net dll

$
0
0
I have a requirement to run a .ksh file via .NET. For SSH the unix I'm using the SSH.NET dll. I'm able to successfully connect to the unix box and run commands.

But when the .ksh file tries connecting to a DB it is not able to connect.

I'm able to successfully tnsping the DB from putty. But when I tried tnsping the DB via SSH.NET dll I'm getting ksh: tnsping: not found.

Is it something specific to the Unix (like environment variable or something)?

It would me much helpful if someone could tell what is that we are missing here :)

New Post: Issue with command result output

$
0
0
Hi There

I am using SSH.NET package to ssh to the linux box and run command on it in the following way:
using (var sshClient = new SshClient(Connection))
{
   var command = sshClient.CreateCommand(CommandTextString);
   command.Execute();
   var result = command.Result;
}
Command that I run is:
ps -fu sysaccount1 | grep serivce-alerts-retrv | grep -v grep | wc -l
And I got the output of it:

hostname0000001:/$ ps -fu sysaccount1 | grep serivce-alerts-retrv | grep -v g\r
<ysaccount1 | grep serivce-alerts-retrv | grep -v gr \b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bep | wc -l \r\n
1

Due to some reason in the returned result it was broken into 2 pars by "\r" and some strange "\b" were introduced. I expect and need it to be as 1 row just as it was sent.

It happens when command length exceeds some value, like 70 characters.

Could you please help to understand and resolve this issue? Is it related to streams buffer length?

Reviewed: 2016.0.0 (déc. 13, 2016)

$
0
0
Rated 5 Stars (out of 5) - i want download it

Reviewed: 2016.0.0 (Dec 20, 2016)

$
0
0
Rated 4 Stars (out of 5) - I want download it

Reviewed: 2016.0.0 (Jan 03, 2017)

$
0
0
Rated 5 Stars (out of 5) - i want to download it, thanks

Reviewed: 2016.0.0 (Jan 17, 2017)

$
0
0
Rated 3 Stars (out of 5) - How do i download this release?

Reviewed: 2016.0.0 (一月 19, 2017)

$
0
0
Rated 5 Stars (out of 5) - I want to download it

Reviewed: 2016.0.0 (Jan 19, 2017)

$
0
0
Rated 5 Stars (out of 5) - NOTE: For anyone looking to download this, use the following link: https://www.nuget.org/packages/SSH.NET/

Created Unassigned: ListDirectory with Only List .txt Files [2826]

$
0
0
Hello Sir,

As I am using Renci.SshNet for SFTP Connect . But ListDirectory with path i want only ".txt" Files only. Is is possible or not in these in Asp.net 3.5 C#

Closed Unassigned: ListDirectory with Only List .txt Files [2826]

$
0
0
Hello Sir,

As I am using Renci.SshNet for SFTP Connect . But ListDirectory with path i want only ".txt" Files only. Is is possible or not in these in Asp.net 3.5 C#
Comments: The SFTP specification does not allow a filter to be specified.
You can always use Linq (or whatever) to filter the result.

Next time, please submit issues/question at our new home:
https://github.com/sshnet/SSH.NET

Reviewed: 2016.0.0 (Feb 21, 2017)

$
0
0
Rated 5 Stars (out of 5) - GOODGOODGOODGOODGOODGOOD GOODGOODGOODGOODGOODGOODGOOD

Reviewed: 2016.0.0 (fev 28, 2017)

$
0
0
Rated 5 Stars (out of 5) - COOL COOL COOL COOL COOL

Created Unassigned: ForwardedPortRemote incredibly slow [2831]

$
0
0
Hi
I am using SSH.NET to make remote port forwarding. I use created tunnel for http proxy and proxy works incredibly slow, it takes 20 times more time to load some usual page though SHH.NET comparing with putty tunnel. What can be done to increase performance.

Closed Unassigned: ForwardedPortRemote incredibly slow [2831]

$
0
0
Hi
I am using SSH.NET to make remote port forwarding. I use created tunnel for http proxy and proxy works incredibly slow, it takes 20 times more time to load some usual page though SHH.NET comparing with putty tunnel. What can be done to increase performance?
Comments: Please register an issue at our GitHub home.

New Post: Connecting Linux machine hosted on AWS Cloud

$
0
0
I am new to AWS.
Through .net c# code using SSH.Net, can we connect a Linux machine and invoke a jar file on AWS Cloud?
We have done a lift and shift, just wanted to know if SSH.Net has the capability to connect AWS cloud?
If not, can anyone suggest alternatives please?
I have not done a POC yet but am about to do it... Just wanted to be sure if I am going in the right direction...

New Post: Cannot use RSA key generated by PuTTYgen

$
0
0
Sharing the solution by answering my own question...

The solution is: generate the key with MobaXterm's generator, and use the "Export OpenSSH key" (not"Export OpenSSH key (force new file format)" option. This is the only option that generates a private key file compatible with the PowerShell Posh-SSH module.

New Post: HOW TO: Use SSH.NET in Visual Studio 2008 Professional and .NET Framework 3.5

$
0
0
I have a Visual Studio 2008 project in C# with .NET Framework 3.5 and I would like to use this library but I do not know what package I have to download. There are 3 branches, developer, master and sftpfilestream in https://github.com/sshnet/SSH.NET

So which one I have to download for Visual Studio 2008 and .NET Framework 3.5? Also once downloaded how to use it? I mean which project I have to reference within mine? or which assembly (DLL) I have to reference? I cannot see any DLL in the package...

Please, Help me.

Reviewed: 2016.0.0 (4月 17, 2017)

$
0
0
Rated 5 Stars (out of 5) - I want to download this version

Reviewed: 2016.0.0 (4 24, 2017)

$
0
0
Rated 5 Stars (out of 5) - aaaaaaaaaa
Viewing all 2955 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>