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

SshException

public class SshException : Exception
The exception that is thrown when an SSH exception occurs.
using System; using System.Runtime.CompilerServices; using System.Runtime.Serialization; namespace Renci.SshNet.Common { [Serializable] [System.Runtime.CompilerServices.NullableContext(2)] [System.Runtime.CompilerServices.Nullable(0)] public class SshException : Exception { public SshException() { } public SshException(string message) : base(message) { } public SshException(string message, Exception innerException) : base(message, innerException) { } [System.Runtime.CompilerServices.NullableContext(1)] protected SshException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }