class documentation

class ConchTestServerFactory(factory.SSHFactory): (source)

View In Hierarchy

Undocumented

Method buildProtocol Create an instance of the server side of the SSH protocol.
Method getPrimes Diffie-Hellman primes that can be used for the diffie-hellman-group-exchange-sha1 key exchange.
Method getPrivateKeys Called when the factory is started to get the private portions of the servers host keys. Returns a dictionary mapping SSH key types to twisted.conch.ssh.keys.Key objects.
Method getPublicKeys Called when the factory is started to get the public portions of the servers host keys. Returns a dictionary mapping SSH key types to public key strings.
Method getService Return a class to use as a service for the given transport.
Class Variable noisy Undocumented
Class Variable services Undocumented
Instance Variable proto Undocumented

Inherited from SSHFactory:

Method getDHPrime Return a tuple of (g, p) for a Diffe-Hellman process, with p being as close to bits bits as possible.
Method startFactory Check for public and private keys.
Instance Variable primes Undocumented
Instance Variable privateKeys Undocumented
Instance Variable publicKeys Undocumented
Class Variable _log Undocumented

Inherited from Factory (via SSHFactory):

Class Method forProtocol Create a factory for the given protocol.
Method doStart Make sure startFactory is called.
Method doStop Make sure stopFactory is called.
Method logPrefix Describe this factory for log messages.
Method stopFactory This will be called before I stop listening on all Ports/Connectors.
Class Variable protocol Undocumented
Instance Variable numPorts Undocumented
def buildProtocol(self, addr): (source)

Create an instance of the server side of the SSH protocol.

Parameters
addr:twisted.internet.interfaces.IAddress providerThe address at which the server will listen.
Returns
twisted.conch.ssh.transport.SSHServerTransportThe built transport.
def getPrimes(self): (source)

Diffie-Hellman primes that can be used for the diffie-hellman-group-exchange-sha1 key exchange.

Returns
dict mapping the key size to a list of (generator, prime) tupple.The primes and generators.
def getPrivateKeys(self): (source)

Called when the factory is started to get the private portions of the servers host keys. Returns a dictionary mapping SSH key types to twisted.conch.ssh.keys.Key objects.

Returns
dictUndocumented
def getPublicKeys(self): (source)

Called when the factory is started to get the public portions of the servers host keys. Returns a dictionary mapping SSH key types to public key strings.

Returns
dictUndocumented
def getService(self, trans, name): (source)

Return a class to use as a service for the given transport.

Parameters
transUndocumented
nameUndocumented
transport:transport.SSHServerTransportUndocumented
service:bytesUndocumented
Returns
subclass of service.SSHServiceUndocumented

Undocumented