| Class | Net::SSH::UserAuth::Methods::PublicKey |
| In: |
lib/net/ssh/userauth/methods/publickey.rb
|
| Parent: | Object |
Implements the "publickey" SSH authentication method.
| messenger | [W] | The messenger instance to use to send and receive messages |
| session_id | [W] | The session id of the current SSH session |
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.