class twisted.conch.ssh.factory.SSHFactory(protocol.Factory): (source)
Known subclasses: twisted.conch.manhole_ssh.ConchFactory, twisted.conch.openssh_compat.factory.OpenSSHFactory
A Factory for SSH servers.
Class Variable | services | Undocumented |
Method | startFactory | Check for public and private keys. |
Instance Variable | publicKeys | Undocumented |
Instance Variable | privateKeys | Undocumented |
Instance Variable | primes | Undocumented |
Method | buildProtocol | Create an instance of the server side of the SSH protocol. |
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 | 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 | getPrimes | Called when the factory is started to get Diffie-Hellman generators and primes to use. Returns a dictionary mapping number of bits to lists of tuple of (generator, prime). |
Method | getDHPrime | Return a tuple of (g, p) for a Diffe-Hellman process, with p being as close to bits bits as possible. |
Method | getService | Return a class to use as a service for the given transport. |
Class Variable | _log | Undocumented |
Inherited from Factory:
Class Variable | protocol | Undocumented |
Instance Variable | numPorts | Undocumented |
Class Variable | noisy | Undocumented |
Class Method | forProtocol | Create a factory for the given protocol. |
Method | logPrefix | Describe this factory for log messages. |
Method | doStart | Make sure startFactory is called. |
Method | doStop | Make sure stopFactory is called. |
Method | stopFactory | This will be called before I stop listening on all Ports/Connectors. |
Create an instance of the server side of the SSH protocol.
Parameters | addr | The address at which the server will listen. (type: twisted.internet.interfaces.IAddress provider) |
Returns | The built transport. (type: twisted.conch.ssh.transport.SSHServerTransport ) |
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 | Undocumented (type: dict ) |
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 | Undocumented (type: dict ) |
Called when the factory is started to get Diffie-Hellman generators and primes to use. Returns a dictionary mapping number of bits to lists of tuple of (generator, prime).
Returns | Undocumented (type: dict ) |
Return a class to use as a service for the given transport.
Parameters | transport | Undocumented (type: transport.SSHServerTransport ) |
service | Undocumented (type: bytes ) | |
Returns | Undocumented (type: subclass of service.SSHService ) |