Skip to content

SSH exception after client connect using .NET 3.5 version #113

@haimiko

Description

@haimiko

I'm able to successfully work with the .NET 4.0 version of SSH.NET but am experiencing issues with a when both the ssh.net and main project are .NET 3.5 version right after the client connect. I get a "value cannot be null" exception. This does not happen when the main project is .net 4.0 and SSH.NET is .NET 3.5.

I've tried both password and keyfile authentication and both exhibit the same issue. See attached code for the way I'm using Renci.SSH. sshclient.cs

System.ArgumentNullException was caught
Message=Value cannot be null.
Parameter name: All lists are either null or empty.
Source=Renci.SshNet
ParamName=All lists are either null or empty.
StackTrace:
at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout) in Session.cs:line 812
at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle) in Session.cs:line 783
at Renci.SshNet.Session.Connect() in Session.cs:line 643
at Renci.SshNet.BaseClient.Connect() BaseClient.cs:line 214
at SSH.clientSSH(ConnectionInfo connectionInfo, String Computer, String command) in SSH.cs:line 225
InnerException: null

More specifically, line 643 in Session.cs (WaitOnHandle(_keyExcahangeCompletedWaitHandle) is what's failing.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions