Class: Net::SSH::UserAuth::Methods::PublicKey

Class | Net::SSH::UserAuth::Methods::PublicKey
In: | lib/net/ssh/userauth/methods/publickey.rb
Parent: | Object

Implements the "publickey" SSH authentication method.

### Methods

authenticate new

### Included Modules

Net::SSH::UserAuth::Constants

### Attributes

messenger | [W] | The messenger instance to use to send and receive messages
session_id | [W] | The session id of the current SSH session

### Public Class methods

new( buffers )

Create a new PublicKey instance that uses the given buffer factory to produce new buffer instances.

### Public Instance methods

authenticate( next_service, username, data={} )

Attempts to perform public-key authentication for the given username, trying each identity known to the key manager. If any of them succeed, returns `true`, otherwise returns `false`. The data hash must contain a UserKeyManager instance under the `:key_manager` key.

[Validate]