You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: embedded_server/embedded_server.py
+45-23Lines changed: 45 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@
30
30
31
31
Does _not_ support interactive shells, our clients do not use them.
32
32
33
-
Server private key is hardcoded. Server listen code inspired by demo_server.py in\
33
+
Server private key is hardcoded. Server listen code inspired by demo_server.py in
34
34
Paramiko repository.
35
35
36
36
Server runs asynchronously in its own greenlet. Call `start_server` with a new `multiprocessing.Process` to run it on a new process with its own event loop.
@@ -62,12 +62,34 @@
62
62
os.path.dirname(__file__), 'rsa.key']))
63
63
64
64
classServer(paramiko.ServerInterface):
65
-
def__init__(self, transport, fail_auth=False,
65
+
"""Implements :mod:`paramiko.ServerInterface` to provide an
66
+
embedded SSH server implementation.
67
+
68
+
Start a `Server` with at least a transport and a host key.
69
+
70
+
Any SSH2 client with public key or password authentication
71
+
is allowed, only. Shell requests are not accepted.
0 commit comments