summaryrefslogtreecommitdiff
path: root/paramiko/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'paramiko/server.py')
-rw-r--r--paramiko/server.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/paramiko/server.py b/paramiko/server.py
index b68607e1..6b0bb0f6 100644
--- a/paramiko/server.py
+++ b/paramiko/server.py
@@ -255,7 +255,7 @@ class ServerInterface:
We don't check if the krb5 principal is allowed to log in on
the server, because there is no way to do that in python. So
if you develop your own SSH server with paramiko for a cetain
- plattform like Linux, you should call C{krb5_kuserok()} in
+ platform like Linux, you should call C{krb5_kuserok()} in
your local kerberos library to make sure that the
krb5_principal has an account on the server and is allowed to
log in as a user.
@@ -287,7 +287,7 @@ class ServerInterface:
We don't check if the krb5 principal is allowed to log in on
the server, because there is no way to do that in python. So
if you develop your own SSH server with paramiko for a cetain
- plattform like Linux, you should call C{krb5_kuserok()} in
+ platform like Linux, you should call C{krb5_kuserok()} in
your local kerberos library to make sure that the
krb5_principal has an account on the server and is allowed
to log in as a user.
@@ -454,10 +454,10 @@ class ServerInterface:
subsystem; ``False`` if that subsystem can't or won't be provided.
"""
transport = channel.get_transport()
- handler_class, larg, kwarg = transport._get_subsystem_handler(name)
+ handler_class, args, kwargs = transport._get_subsystem_handler(name)
if handler_class is None:
return False
- handler = handler_class(channel, name, self, *larg, **kwarg)
+ handler = handler_class(channel, name, self, *args, **kwargs)
handler.start()
return True
@@ -517,6 +517,9 @@ class ServerInterface:
:param .Channel channel: the `.Channel` the request arrived on
:return: ``True`` if the AgentForward was loaded; ``False`` if not
+
+ If ``True`` is returned, the server should create an
+ :class:`AgentServerProxy` to access the agent.
"""
return False
@@ -634,7 +637,7 @@ class InteractiveQuery:
class SubsystemHandler(threading.Thread):
"""
- Handler for a subsytem in server mode. If you create a subclass of this
+ Handler for a subsystem in server mode. If you create a subclass of this
class and pass it to `.Transport.set_subsystem_handler`, an object of this
class will be created for each request for this subsystem. Each new object
will be executed within its own new thread by calling `start_subsystem`.
@@ -642,7 +645,7 @@ class SubsystemHandler(threading.Thread):
For example, if you made a subclass ``MP3Handler`` and registered it as the
handler for subsystem ``"mp3"``, then whenever a client has successfully
- authenticated and requests subsytem ``"mp3"``, an object of class
+ authenticated and requests subsystem ``"mp3"``, an object of class
``MP3Handler`` will be created, and `start_subsystem` will be called on
it from a new thread.
"""