class SSHFactory(protocol.Factory): (source)
Known subclasses: twisted.conch.manhole_ssh.ConchFactory
, twisted.conch.openssh_compat.factory.OpenSSHFactory
, twisted.conch.test.test_endpoints.CommandFactory
, twisted.conch.test.test_ssh.ConchTestServerFactory
, twisted.conch.test.test_transport.MockFactory
A Factory for SSH servers.
Method | build |
Create an instance of the server side of the SSH protocol. |
Method | get |
Return a tuple of (g, p) for a Diffe-Hellman process, with p being as close to bits bits as possible. |
Method | get |
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 | get |
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 | get |
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 | get |
Return a class to use as a service for the given transport. |
Method | start |
Check for public and private keys. |
Class Variable | services |
Undocumented |
Instance Variable | primes |
Undocumented |
Instance Variable | private |
Undocumented |
Instance Variable | public |
Undocumented |
Class Variable | _log |
Undocumented |
Inherited from Factory
:
Class Method | for |
Create a factory for the given protocol. |
Method | do |
Make sure startFactory is called. |
Method | do |
Make sure stopFactory is called. |
Method | log |
Describe this factory for log messages. |
Method | stop |
This will be called before I stop listening on all Ports/Connectors. |
Class Variable | noisy |
Undocumented |
Class Variable | protocol |
Undocumented |
Instance Variable | num |
Undocumented |
twisted.conch.test.test_ssh.ConchTestServerFactory
Create an instance of the server side of the SSH protocol.
Parameters | |
addr:twisted.internet.interfaces.IAddress provider | The address at which the server will listen. |
Returns | |
twisted.conch.ssh.transport.SSHServerTransport | The built transport. |
twisted.conch.openssh_compat.factory.OpenSSHFactory
, twisted.conch.test.test_ssh.ConchTestServerFactory
, twisted.conch.test.test_transport.MockFactory
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 | |
dict | Undocumented |
twisted.conch.openssh_compat.factory.OpenSSHFactory
, twisted.conch.test.test_ssh.ConchTestServerFactory
, twisted.conch.test.test_transport.MockFactory
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 | |
dict | Undocumented |
twisted.conch.openssh_compat.factory.OpenSSHFactory
, twisted.conch.test.test_ssh.ConchTestServerFactory
, twisted.conch.test.test_transport.MockFactory
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 | |
dict | Undocumented |
twisted.conch.test.test_ssh.ConchTestServerFactory
Return a class to use as a service for the given transport.
Parameters | |
transport:transport.SSHServerTransport | Undocumented |
service:bytes | Undocumented |
Returns | |
subclass of service.SSHService | Undocumented |
twisted.conch.manhole_ssh.ConchFactory
, twisted.conch.test.test_endpoints.CommandFactory
Undocumented
twisted.conch.manhole_ssh.ConchFactory
, twisted.conch.test.test_endpoints.CommandFactory
Undocumented