Package DataCollector :: Module SshSession :: Class SimpleUserAuth
[hide private]
[frames] | no frames]

Class SimpleUserAuth

source code

           twisted.python.log.Logger --+        
                                       |        
    twisted.conch.ssh.service.SSHService --+    
                                           |    
twisted.conch.ssh.userauth.SSHUserAuthClient --+
                                               |
                                              SimpleUserAuth

Instance Methods [hide private]
Deferred
getPassword(self)
Return a Deferred that will be called back with a password.
source code
str/None
getPublicKey(self)
Return a public key for the user.
source code
Deferred
getPrivateKey(self)
Return a Deferred that will be called back with the private key corresponding to the last public key from getPublicKey().
source code

Inherited from twisted.conch.ssh.userauth.SSHUserAuthClient: __init__, askForAuth, auth_keyboard_interactive, auth_password, auth_publickey, getGenericAnswers, serviceStarted, signData, ssh_USERAUTH_FAILURE, ssh_USERAUTH_PK_OK, ssh_USERAUTH_SUCCESS, tryAuth

Inherited from twisted.conch.ssh.userauth.SSHUserAuthClient (private): _cbGenericAnswers, _cbPassword, _cbSignData, _cbSignedData, _ebAuth, _setNewPass, _setOldPass

Inherited from twisted.conch.ssh.service.SSHService: logPrefix, packetReceived, serviceStopped

Inherited from twisted.python.log.Logger: __providedBy__

Class Variables [hide private]

Inherited from twisted.conch.ssh.userauth.SSHUserAuthClient: name, preferredOrder, protocolMessages

Inherited from twisted.conch.ssh.service.SSHService: transport

Inherited from twisted.python.log.Logger: __implemented__, __provides__

Method Details [hide private]

getPassword(self)

source code 
Return a Deferred that will be called back with a password. prompt is a string to display for the password, or None for a generic 'user@hostname's password: '.
Returns: Deferred
Overrides: twisted.conch.ssh.userauth.SSHUserAuthClient.getPassword
(inherited documentation)

getPublicKey(self)

source code 
Return a public key for the user. If no more public keys are available, return None.
Returns: str/None
Overrides: twisted.conch.ssh.userauth.SSHUserAuthClient.getPublicKey
(inherited documentation)

getPrivateKey(self)

source code 
Return a Deferred that will be called back with the private key corresponding to the last public key from getPublicKey(). If the private key is not available, errback on the Deferred.
Returns: Deferred
Overrides: twisted.conch.ssh.userauth.SSHUserAuthClient.getPrivateKey
(inherited documentation)