145
121
class SSHService(service.Service):
148
124
def __init__(self, portal, private_key_path, public_key_path,
125
oops_configuration, main_log, access_log,
126
access_log_path, strport='tcp:22', idle_timeout=3600,
150
128
"""Construct an SSH service.
152
130
:param portal: The `Portal` that turns authentication requests into
154
132
:param private_key_path: The path to the SSH server's private key.
155
133
:param public_key_path: The path to the SSH server's public key.
156
141
:param strport: The port to run the server on, expressed in Twisted's
157
142
"strports" mini-language. Defaults to 'tcp:22'.
158
143
:param idle_timeout: The number of seconds to wait before killing a