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

Renci.SshNet.Session

public class Session : ISession, IDisposable
Provides functionality to connect and interact with SSH server.
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; void Connect(); Task ConnectAsync(CancellationToken cancellationToken); void Disconnect(); void SendKeepAlive(); } }