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

Class SSHClientTransport

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

Known Subclasses:
SshClientTransport

Method Summary
  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.
  _continueGEX_GROUP(self, ignored, pubKey, f, signature)
  _continueGEX_REPLY(self, ignored, pubKey, f, signature)
  _getKey(self, c, sharedSecret, exchangeHash)
  _keySetup(self, sharedSecret, exchangeHash)
Inherited from SSHTransportBase: connectionLost, dataReceived, getPacket, isEncrypted, isVerified, loseConnection, receiveDebug, receiveError, receiveUnimplemented, sendDebug, sendDisconnect, sendIgnore, sendKexInit, sendPacket, sendUnimplemented, setService, ssh_DEBUG, ssh_DISCONNECT, ssh_IGNORE, ssh_UNIMPLEMENTED
Inherited from BaseProtocol: makeConnection

Class Variable Summary
int isClient = 1                                                                     
Inherited from SSHTransportBase: buf, comment, currentEncryptions, gotVersion, ignoreNextPacket, incomingCompression, incomingPacketSequence, isAuthorized, ourVersionString, outgoingCompression, outgoingPacketSequence, protocolVersion, service, sessionID, supportedCiphers, supportedCompressions, supportedKeyExchanges, supportedLanguages, supportedMACs, supportedPublicKeys, version
Inherited from Protocol: __implemented__, __provides__
Inherited from BaseProtocol: __providedBy__, connected, transport

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.1 on Thu Aug 16 09:55:12 2007 http://epydoc.sf.net