Package twisted :: Package scripts :: Module conch :: Class SSHClientTransport
[frames | no frames]

Class SSHClientTransport

BaseProtocol --+            
               |            
        Protocol --+        
                   |        
    SSHTransportBase --+    
                       |    
      SSHClientTransport --+
                           |
                          SSHClientTransport


Method Summary
  connectionSecure(self)
Called when the encryption has been set up.
  isInKnownHosts(self, host, pubKey)
checks to see if host is in the known_hosts file for the user.
  receiveDebug(self, alwaysDisplay, message, lang)
  receiveError(self, code, desc)
  sendDisconnect(self, code, reason)
  verifyHostKey(self, pubKey, fingerprint)
    Inherited from SSHClientTransport
  _continueGEX_GROUP(self, ignored, pubKey, f, signature)
  _continueGEX_REPLY(self, ignored, pubKey, f, signature)
  _getKey(self, c, sharedSecret, exchangeHash)
  _keySetup(self, sharedSecret, exchangeHash)
  connectionMade(self)
Called when a connection is made.
  requestService(self, instance)
Request that a service be run over this transport.
  ssh_KEX_DH_GEX_GROUP(self, packet)
  ssh_KEX_DH_GEX_REPLY(self, packet)
  ssh_KEXINIT(self, packet)
  ssh_NEWKEYS(self, packet)
  ssh_SERVICE_ACCEPT(self, packet)
    Inherited from SSHTransportBase
  connectionLost(self, reason)
  dataReceived(self, data)
Called whenever data is received.
  getPacket(self)
  isEncrypted(self, direction)
direction must be in ["out", "in", "both"]
  isVerified(self, direction)
direction must be in ["out", "in", "both"]
  receiveUnimplemented(self, seqnum)
  sendDebug(self, message, alwaysDisplay, language)
  sendIgnore(self, message)
  sendKexInit(self)
  sendPacket(self, messageType, payload)
  sendUnimplemented(self)
  setService(self, service)
  ssh_DEBUG(self, packet)
  ssh_DISCONNECT(self, packet)
  ssh_IGNORE(self, packet)
  ssh_UNIMPLEMENTED(self, packet)
    Inherited from Protocol
  connectionFailed(self)
(Deprecated)
    Inherited from BaseProtocol
  makeConnection(self, transport)
Make a connection to a transport and a server.

Class Variable Summary
    Inherited from SSHClientTransport
int isClient = 1                                                                     
    Inherited from SSHTransportBase
str buf = ''
str comment = ''
NoneType currentEncryptions = None                                                                  
int gotVersion = 0                                                                     
int ignoreNextPacket = 0                                                                     
NoneType incomingCompression = None                                                                  
int incomingPacketSequence = 0                                                                     
int isAuthorized = 0                                                                     
str ourVersionString = 'SSH-2.0-Twisted'
NoneType outgoingCompression = None                                                                  
int outgoingPacketSequence = 0                                                                     
str protocolVersion = '2.0'
NoneType service = None                                                                  
NoneType sessionID = None                                                                  
list supportedCiphers = ['aes256-ctr', 'aes256-cbc', 'aes192-...
list supportedCompressions = ['none', 'zlib']
list supportedKeyExchanges = ['diffie-hellman-group-exchange-...
tuple supportedLanguages = ()
list supportedMACs = ['hmac-sha1', 'hmac-md5']
list supportedPublicKeys = ['ssh-rsa', 'ssh-dss']
str version = 'Twisted'
    Inherited from Protocol
tuple __implements__ = (<class twisted.internet.interfaces.IPr...
    Inherited from BaseProtocol
int connected = 0                                                                     
NoneType transport = None                                                                  

Method Details

connectionSecure(self)

Called when the encryption has been set up. Generally, requestService() is called to run another service over the transport.
Overrides:
twisted.conch.ssh.transport.SSHClientTransport.connectionSecure (inherited documentation)

isInKnownHosts(self, host, pubKey)

checks to see if host is in the known_hosts file for the user. returns 0 if it isn't, 1 if it is and is the same, 2 if it's changed.

Generated by Epydoc 2.0 on Sat Sep 13 04:21:04 2003 http://epydoc.sf.net