Exemple #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
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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
Exemple #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
Exemple #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)
Exemple #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)
Exemple #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
Exemple #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)
Exemple #14
0
 def ssh_USERAUTH_SUCCESS(self, packet):
     self.transport._state = b'CHANNELLING'
     return SSHUserAuthClient.ssh_USERAUTH_SUCCESS(self, packet)