ShellStream Expect Method (String, TimeSpan)SSH .NET Client Library Documentation
Expects the expression specified by text.

Namespace: Renci.SshNet
Assembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax

public string Expect(
	string text,
	TimeSpan timeout
)

Return Value

Text available in the shell that ends with expected text, if the specified time elapsed returns null.
See Also