Table of Contents

Class SshPasswordPrompt

Namespace
SshSharp
Assembly
SshSharp.dll

A request for a password, passed to PasswordProvider when authentication reaches a password (the password method, or a keyboard-interactive round that asks for exactly one hidden input). It carries what an interactive tool shows, as ssh's user@host's password: prompt does.

public sealed class SshPasswordPrompt
Inheritance
SshPasswordPrompt
Inherited Members

Properties

Attempt

Which prompt this is on this connection, from 1 to NumberOfPasswordPrompts. The given Password is not a prompt and is not counted.

Host

The host as the caller gave it to ConnectAsync (the HostName when connecting by ssh_config alias), or null when connecting over a Stream.

IsRetry

Whether a password was already rejected on this connection (a prompted one, or the given Password): show something like ssh's "Permission denied, please try again."

Method

The method the password is for: password, or keyboard-interactive on a server that asks for it that way (PAM).

Port

The server's port (22 when connecting over a Stream, where it is not known).

UserName

The user the password is for (UserName).