<PackageReference Include="SSH.NET" Version="2020.0.2" />

Renci.SshNet.Common.SshConnectionException

The exception that is thrown when connection was terminated.
namespace Renci.SshNet.Common { public class SshConnectionException : SshException { public DisconnectReason DisconnectReason { get; } public SshConnectionException(); public SshConnectionException(string message); public SshConnectionException(string message, DisconnectReason disconnectReasonCode); public SshConnectionException(string message, DisconnectReason disconnectReasonCode, Exception inner); } }