twisted.conch.endpoints._UserAuth(SSHUserAuthClient)
class documentationtwisted.conch.endpoints
View Source
(View In Hierarchy)
Method | getPublicKey | Retrieve the next public key object to offer to the server, possibly delegating to an authentication agent if there is one. |
Method | signData | Extend the base signing behavior by using an SSH agent to sign the data, if one is available. |
Method | getPrivateKey | Get the private part of a key pair to use for authentication. The key
corresponds to the public part most recently returned from
getPublicKey . |
Method | getPassword | Get the password to use for authentication. |
Method | ssh_USERAUTH_SUCCESS | Handle user authentication success in the normal way, but also make a
note of the state change on the _CommandTransport . |
Method | connectToAgent | Set up a connection to the authentication agent and trigger its initialization. |
Method | loseAgentConnection | Disconnect the agent. |
Inherited from SSHService (via SSHUserAuthClient):
Method | serviceStopped | called when the service is stopped, either by the connection ending or by another service being started |
Method | logPrefix | Override this method to insert custom logging behavior. Its return value will be inserted in front of every line. It may be called more times than the number of output lines. |
Method | packetReceived | called when we receive a packet on the transport |
Inherited from SSHService (via SSHUserAuthClient):
Method | serviceStopped | called when the service is stopped, either by the connection ending or by another service being started |
Method | logPrefix | Override this method to insert custom logging behavior. Its return value will be inserted in front of every line. It may be called more times than the number of output lines. |
Method | packetReceived | called when we receive a packet on the transport |
Retrieve the next public key object to offer to the server, possibly delegating to an authentication agent if there is one.
Returns | The public part of a key pair that could be used to authenticate with the
server, or None if there are no more public keys to try. (type: twisted.conch.ssh.keys.Key
or types.NoneType ) |
Extend the base signing behavior by using an SSH agent to sign the data, if one is available.
Get the password to use for authentication.
Returns | A Deferred
which fires with the password, or None if the password was not
specified. |
Handle user authentication success in the normal way, but also make a
note of the state change on the _CommandTransport
.
Set up a connection to the authentication agent and trigger its initialization.
Parameters | endpoint | An endpoint which can be used to connect to the authentication agent. (type: IStreamClientEndpoint
provider) |
Returns | A Deferred
which fires when the agent connection is ready for use. |