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

IBaseClient

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