Class: Net::SSH::UserAuth::Methods::KeyboardInteractive

Class | Net::SSH::UserAuth::Methods::KeyboardInteractive
In: | lib/net/ssh/userauth/methods/keyboard-interactive.rb
Parent: | Object

Implements the "keyboard-interactive" SSH authentication method.

### Methods

authenticate new

### Included Modules

Net::SSH::UserAuth::Constants

### Constants

InfoRequest | = | Struct.new( :name, :instruction, :password, :prompts ) |  | Represents an information request from the server
Prompt | = | Struct.new( :prompt, :echo ) |  | Represents a single prompt in an InfoRequest.
USERAUTH_INFO_REQUEST | = | 60
USERAUTH_INFO_RESPONSE | = | 61

### Attributes

messenger | [W] | The messenger to use when communicating.

### Public Class methods

new( buffers, callback )

Create a new Password authenticator. It will use the given buffers factory to create new buffer instances. The `callback` should be a proc object to use to specialize the behavior of this authentication method.

### Public Instance methods

authenticate( next_service, username, data={} )

Attempt to authenticate the given user for the given service. The data hash must specify a `:password` value, otherwise this will always return false.

[Validate]