Class: Net::SSH::Authentication::Methods::Abstract

Class | Net::SSH::Authentication::Methods::Abstract
In: | lib/net/ssh/authentication/methods/abstract.rb
Parent: | Object

The base class of all user authentication methods. It provides a few bits of common functionality.

### Methods

new send_message session_id userauth_request

### Included Modules

Constants Loggable

### Attributes

key_manager | [R] | The key manager object. Not all authentication methods will require this.
session | [R] | The authentication session object

### Public Class methods

new(session, options={})

Instantiates a new authentication method.

### Public Instance methods

send_message(msg)

Sends a message via the underlying transport layer abstraction. This will block until the message is completely sent.

session_id()

Returns the session-id, as generated during the first key exchange of an SSH connection.

userauth_request(username, next_service, auth_method, *others)

Creates a new USERAUTH_REQUEST packet. The extra arguments on the end must be either boolean values or strings, and are tacked onto the end of the packet. The new packet is returned, ready for sending.

[Validate]