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

Class SSHClientTransport

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

Known Subclasses:
SSHClientTransport

Method Summary
  _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.
  connectionSecure(self)
Called when the encryption has been set up.
  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)
Deferred verifyHostKey(self, hostKey, fingerprint)
Returns a Deferred that gets a callback if it is a valid key, or an errback if not.
    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"]
  receiveDebug(self, alwaysDisplay, message, lang)
  receiveError(self, reasonCode, description)
  receiveUnimplemented(self, seqnum)
  sendDebug(self, message, alwaysDisplay, language)
  sendDisconnect(self, reason, desc)
  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
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

connectionMade(self)

Called when a connection is made.

This may be considered the initializer of the protocol, because it is called when the connection is completed. For clients, this is called once the connection to the server has been established; for servers, this is called after an accept() call stops blocking and a socket has been received. If you need to send any greeting or initial message, do it here.
Overrides:
twisted.conch.ssh.transport.SSHTransportBase.connectionMade (inherited documentation)

connectionSecure(self)

Called when the encryption has been set up. Generally, requestService() is called to run another service over the transport.

requestService(self, instance)

Request that a service be run over this transport.
Parameters:
instance
           (type=subclass of twisted.conch.ssh.service.SSHService)

verifyHostKey(self, hostKey, fingerprint)

Returns a Deferred that gets a callback if it is a valid key, or an errback if not.
Parameters:
hostKey
           (type=str)
fingerprint
           (type=str)
Returns:
Deferred

Class Variable Details

isClient

Type:
int
Value:
1                                                                     

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