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

Renci.SshNet.IBaseClient

public interface IBaseClient : IDisposable
Serves as base class for client implementations, provides common client functionality.
namespace Renci.SshNet { public interface IBaseClient : IDisposable { ConnectionInfo ConnectionInfo { get; } bool IsConnected { get; } TimeSpan KeepAliveInterval { get; set; } event EventHandler<ExceptionEventArgs> ErrorOccurred; event EventHandler<HostKeyEventArgs> HostKeyReceived; event EventHandler<SshIdentificationEventArgs> ServerIdentificationReceived; void Connect(); Task ConnectAsync(CancellationToken cancellationToken); void Disconnect(); void SendKeepAlive(); } }