Skip to content

.Disconnect hangs the thread on MacOS #686

Closed
@delebru

Description

@delebru
var ssh = new SshClient(hostName, username, password);
ssh.Connect();
var command = ssh.RunCommand("whoami");
Console.WriteLine($"Command result: {command.Result}");
ssh.Disconnect();
ssh.Dispose();

The above code runs fine on Windows but hangs on MacOS. It will connect and run the remote command just fine, but it never gets past the .Disconnect. If there is no .Disconnect, it will hang on .Dispose.

Tested with .NET Core 2.2 and 3.1 and v2016.1.0.

Downgrading to v2013.4.7 fixes the issue.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions