Table of Contents

Constructor SshExpect

Namespace
SshSharp
Assembly
SshSharp.dll

SshExpect(SshSession, Encoding?)

Drives session: reads its standard output, writes its standard input.

public SshExpect(SshSession session, Encoding? encoding = null)

Parameters

session SshSession

The session, for example a shell started with a terminal.

encoding Encoding

How the program's output and input are encoded; UTF-8 by default.

SshExpect(Stream, Stream, Encoding?)

Drives a program through its output and input streams.

public SshExpect(Stream output, Stream input, Encoding? encoding = null)

Parameters

output Stream

What the program writes: searched by ExpectAsync(string, CancellationToken).

input Stream

Where SendAsync(string, CancellationToken) and SendLineAsync(string, CancellationToken) write.

encoding Encoding

How the program's output and input are encoded; UTF-8 by default.