class documentation
class FakeClockSSHUserAuthServer(SSHUserAuthServer): (source)
Undocumented
Property | attempts |
Use the attemptsBeforeDisconnect value defined by the factory to make it easier to override. |
Property | clock |
Use the reactor defined by the factory, rather than the default global reactor, to simplify testing (by allowing an alternate implementation to be supplied by tests). |
Inherited from SSHUserAuthServer
:
Method | auth |
Password authentication. Payload: |
Method | auth |
Public key authentication. Payload: |
Method | service |
Called when the userauth service is started. Set up instance variables, check if we should allow password authentication (only allow if the outgoing connection is encrypted) and set up a login timeout. |
Method | service |
Called when the userauth service is stopped. Cancel the login timeout if it's still going. |
Method | ssh_ |
The client has requested authentication. Payload: |
Method | timeout |
Called when the user has timed out on authentication. Disconnect with a DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE message. |
Method | try |
Try to authenticate the user with the given method. Dispatches to a auth_* method. |
Instance Variable | authenticated |
a list of authentication methods that have already been used. |
Instance Variable | interface |
a dict mapping credential interfaces to authentication methods. The server checks to see which of the cred interfaces have checkers and tells the client that those methods are valid for authentication. |
Instance Variable | login |
the number of login attempts that have been made |
Instance Variable | login |
the number of seconds we wait before disconnecting the user for taking too long to authenticate |
Instance Variable | method |
the current authentication method |
Instance Variable | name |
the name of this service: 'ssh-userauth' |
Instance Variable | next |
the service the user wants started after authentication has been completed. |
Instance Variable | password |
the number of seconds to delay when the user gives an incorrect password |
Instance Variable | portal |
the twisted.cred.portal.Portal we are using for authentication |
Instance Variable | supported |
A list of the supported authentication methods. |
Instance Variable | user |
the last username the client tried to authenticate with |
Method | _cb |
The callback when user has successfully been authenticated. For a description of the arguments, see twisted.cred.portal.Portal.login . We start the service requested by the user. |
Method | _eb |
The final errback in the authentication chain. If the reason is error.IgnoreAuthentication, we simply return; the authentication method has sent its own response. Otherwise, send a failure message and (if the method is not 'none') increment the number of login attempts. |
Method | _eb |
Called back if the user did not sent a signature. If reason is error.ValidPublicKey then this key is valid for the user to authenticate with. Send MSG_USERAUTH_PK_OK. |
Method | _eb |
An intermediate errback. If the reason is error.NotEnoughAuthentication, we send a MSG_USERAUTH_FAILURE, but with the partial success indicator set. |
Method | _eb |
If the password is invalid, wait before sending the failure in order to delay brute-force password guessing. |
Class Variable | _log |
Undocumented |
Instance Variable | _cancel |
Undocumented |
Inherited from SSHService
(via SSHUserAuthServer
):
Method | log |
Undocumented |
Method | packet |
called when we receive a packet on the transport |
Class Variable | protocol |
Undocumented |
Class Variable | transport |
Undocumented |