Table of Contents

Struct PasswordPromptContext

Namespace
Tmds.Ssh
Assembly
Tmds.Ssh.dll

Context for password prompts.

public struct PasswordPromptContext
Inherited Members

Properties

Attempt

Gets the attempt number (1-based).

public readonly int Attempt { get; }

Property Value

int

ConnectionInfo

Gets the SSH connection information.

public readonly SshConnectionInfo ConnectionInfo { get; }

Property Value

SshConnectionInfo

IsBatchMode

Returns whether this prompt is non-interactive.

[Obsolete("Use IsNonInteractive instead.")]
public bool IsBatchMode { get; }

Property Value

bool

Remarks

Returns true when the connection is non-interactive or when the connection is an implicit connect (including automatic reconnects). When true, the PasswordPrompt delegate mustn't make interactive prompts.

IsNonInteractive

Returns whether this prompt is non-interactive.

public bool IsNonInteractive { get; }

Property Value

bool

Remarks

Returns true when the connection is non-interactive or when the connection is an implicit connect (including automatic reconnects). When true, the PasswordPrompt delegate mustn't make interactive prompts.

Methods

ResumeConnectTimeout()

Resumes the connect timeout after it was suspended.

public void ResumeConnectTimeout()

SuspendConnectTimeout()

Suspends the connect timeout so it does not expire while waiting for user interaction.

public void SuspendConnectTimeout()