Example #1
0
 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
Example #2
0
 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)
Example #3
0
 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)
Example #4
0
    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)
Example #5
0
    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)
Example #6
0
 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
Example #8
0
 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
Example #9
0
 def __init__(self, factory, next_service):
     self.factory = factory
     self.config = factory.config
     user = self.config["transport"]["user"]
     SSHUserAuthClient.__init__(self, user, next_service)
Example #10
0
 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)
Example #11
0
 def ssh_USERAUTH_SUCCESS(self, packet):
     self.transport._state = b'CHANNELLING'
     return SSHUserAuthClient.ssh_USERAUTH_SUCCESS(self, packet)
 def __init__(self, user, password, instance):
     SSHUserAuthClient.__init__(self, user, instance)
     self.password = password
Example #13
0
 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)
Example #14
0
 def ssh_USERAUTH_SUCCESS(self, packet):
     self.transport._state = b'CHANNELLING'
     return SSHUserAuthClient.ssh_USERAUTH_SUCCESS(self, packet)