示例#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
示例#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)
示例#3
0
文件: endpoints.py 项目: 0004c/VTK
 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)
示例#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)
示例#5
0
文件: endpoints.py 项目: 0004c/VTK
    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)
示例#6
0
文件: ssh.py 项目: reddit/rollingpin
 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
示例#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
示例#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)
示例#10
0
文件: client.py 项目: eddking/metis
 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)
示例#11
0
文件: client.py 项目: eddking/metis
 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
示例#13
0
文件: client.py 项目: eddking/metis
 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)
示例#14
0
文件: client.py 项目: eddking/metis
 def ssh_USERAUTH_SUCCESS(self, packet):
     self.transport._state = b'CHANNELLING'
     return SSHUserAuthClient.ssh_USERAUTH_SUCCESS(self, packet)