def __init__(self, user, connection, password=None, privateKey=None, publicKey=None): SSHUserAuthClient.__init__(self, user, connection) self.password = password self.privateKey = privateKey self.publicKey = publicKey
def ssh_USERAUTH_SUCCESS(self, packet): """ Handle user authentication success in the normal way, but also make a note of the state change on the L{_CommandTransport}. """ self.transport._state = b"CHANNELLING" return SSHUserAuthClient.ssh_USERAUTH_SUCCESS(self, packet)
def ssh_USERAUTH_SUCCESS(self, packet): """ Handle user authentication success in the normal way, but also make a note of the state change on the L{_CommandTransport}. """ self.transport._state = b'CHANNELLING' return SSHUserAuthClient.ssh_USERAUTH_SUCCESS(self, packet)
def signData(self, publicKey, signData): """ Extend the base signing behavior by using an SSH agent to sign the data, if one is available. @type publicKey: L{Key} @type signData: L{str} """ if self.agent is not None: return self.agent.signData(publicKey.blob(), signData) else: return SSHUserAuthClient.signData(self, publicKey, signData)
def signData(self, publicKey, signData): """ Extend the base signing behavior by using an SSH agent to sign the data, if one is available. @type publicKey: L{Key} @type signData: C{str} """ if self.agent is not None: return self.agent.signData(publicKey.blob(), signData) else: return SSHUserAuthClient.signData(self, publicKey, signData)
def __init__(self, factory, next_service): self.factory = factory self.config = factory.config user = self.config["transport"]["user"] SSHUserAuthClient.__init__(self, user, next_service)
def __init__(self, user, password, instance): SSHUserAuthClient.__init__(self, user, instance) self.password = password
def signData(self, publicKey, signData): if self.agent is not None: return self.agent.signData(publicKey.blob(), signData) else: return SSHUserAuthClient.signData(self, publicKey, signData)
def ssh_USERAUTH_SUCCESS(self, packet): self.transport._state = b'CHANNELLING' return SSHUserAuthClient.ssh_USERAUTH_SUCCESS(self, packet)