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

SshCommand

public class SshCommand : IDisposable
public string CommandText { get; }

public TimeSpan CommandTimeout { get; set; }

public string Error { get; }

public string ExitSignal { get; }

public int? ExitStatus { get; }

public Stream ExtendedOutputStream { get; }

public Stream OutputStream { get; }

public string Result { get; }

public IAsyncResult BeginExecute(AsyncCallback callback, object state)

public IAsyncResult BeginExecute(string commandText, AsyncCallback callback, object state)

public void CancelAsync(bool forceKill = false, int millisecondsTimeout = 500)

public void Dispose()

protected virtual void Dispose(bool disposing)

public string EndExecute(IAsyncResult asyncResult)

public string Execute()

public string Execute(string commandText)

public Task ExecuteAsync(CancellationToken cancellationToken = default)