A wrapper around the transport layer that represents the functionality of
user authentication.
| Public Attributes |
| key_manager |
The UserKeyManager instance used by the auth service.
|
| order |
The array of auth-method names (as strings), giving the order in which each
auth-method will be tried.
|
| session |
The SSH (transport) session to use for communication.
|
| Public Methods |
| authenticate |
Processes the authentication of the given username. The
‘next_service’ parameter should be set to the SSH service that
will be requested once the authentication succeeds (usually
‘ssh-connection’).
|
| new |
Create a new user-auth service on top of the given session.
|
| on_banner |
Specify the callback to use when the server sends a banner message at login
time.
|
| send_message |
Sends the message by delegating to the session’s #send_message
method. (This is a convenience method for the authentication
implementations.)
|
| set_auth_method_order |
Changes the set of authentication methods to try to the given array.
Methods are tried in the order in which they are listed in the array.
|
| set_host_key_files |
Causes the set of on-disk host key files to be used to be set to the given
array. Any host key files that were specified previously are lost.
|
| set_key_files |
Causes the set of on-disk key files to be used to be set to the given
array. Any key files that were specified previously are lost.
|
| wait_for_message |
Wraps the Net::SSH::Transport::Session#wait_for_message method, doing
special checking for authentication-related messages.
|
<code/>and<pre/>for code samples.