Go to the latest version of this document.

# ``twisted`.`conch`.`openssh_compat`.`factory`.`OpenSSHFactory``

class documentation

`class OpenSSHFactory(factory.SSHFactory): (source)`

View In Hierarchy

Undocumented

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 | `getPrivateKeys` | Return the server private keys.
Method | `getPublicKeys` | Return the server public keys.
Class Variable | `dataRoot` | Undocumented
Class Variable | `moduliRoot` | Undocumented

Inherited from `SSHFactory`:

Method | `buildProtocol` | Create an instance of the server side of the SSH protocol.
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.
Method | `startFactory` | Check for public and private keys.
Class Variable | `services` | Undocumented
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 | `noisy` | Undocumented
Class Variable | `protocol` | Undocumented
Instance Variable | `numPorts` | Undocumented

def getPrimes(self) -> `dict[int, list[tuple[int, int]]] | None`: (source)
overrides `twisted.conch.ssh.factory.SSHFactory.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).

def getPrivateKeys(self): (source)
overrides `twisted.conch.ssh.factory.SSHFactory.getPrivateKeys`

Return the server private keys.

def getPublicKeys(self): (source)
overrides `twisted.conch.ssh.factory.SSHFactory.getPublicKeys`

Return the server public keys.

dataRoot: `str` = (source)

Undocumented

moduliRoot: `str` = (source)

Undocumented