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

Renci.SshNet.Shell

public class Shell : IDisposable
Represents instance of the SSH shell object
namespace Renci.SshNet { public class Shell : IDisposable { public bool IsStarted { get; } public event EventHandler<EventArgs> Starting; public event EventHandler<EventArgs> Started; public event EventHandler<EventArgs> Stopping; public event EventHandler<EventArgs> Stopped; public event EventHandler<ExceptionEventArgs> ErrorOccurred; public void Start(); public void Stop(); public void Dispose(); protected virtual void Dispose(bool disposing); } }