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

IBaseClient

public interface IBaseClient : IDisposable
Serves as base class for client implementations, provides common client functionality.

Gets the connection info.

bool IsConnected { get; }

Gets a value indicating whether this client is connected to the server.

Gets or sets the keep-alive interval.

Occurs when an error occurred.

Occurs when host key received.

Occurs when server identification received.

void Connect()

Connects client to the server.

Task ConnectAsync(CancellationToken cancellationToken)

Asynchronously connects client to the server.

void Disconnect()

Disconnects client from the server.

Sends a keep-alive message to the server.