rql_download.twistedserver.server.CubicWebSSHdFactory¶
-
class
rql_download.twistedserver.server.
CubicWebSSHdFactory
(conf)[source]¶ Define a factory for SSH servers.
Methods
__init__
(conf)Initialize the ‘CubicWebSSHdFactory’ class. buildProtocol
(addr)Create an instance of the server side of the SSH protocol. doStart
()Make sure startFactory is called. doStop
()Make sure stopFactory is called. forProtocol
(protocol, *args, **kwargs)Create a factory for the given protocol. getDHPrime
(bits)Return a tuple of (g, p) for a Diffe-Hellman process, with p being as close to bits bits as possible. getPrimes
()Called when the factory is started to get Diffie-Hellman generators and primes to use. getPrivateKeys
()Called when the factory is started to get the private portions of the servers host keys. getPublicKeys
()Called when the factory is started to get the public portions of the servers host keys. getService
(transport, service)Return a class to use as a service for the given transport. logPrefix
()Describe this factory for log messages. startFactory
()Check for public and private keys. stopFactory
()This will be called before I stop listening on all Ports/Connectors. Attributes
noisy
numPorts
services
-
__module__
= 'rql_download.twistedserver.server'¶
-
_init_keys
(config)[source]¶ Method to set the public and private keys (as generated by ssh-keygen).
The pass phrase and the path to the public/private key files are defined in the instance configuration file.
Parameters: config: logilab.common.configuration.Configuration (mandatory) :
the server configuration options.
-